home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Documents / develop GX articles & columns / Getting Started w⁄QD GX < prev    next >
MacBinary  |  1995-04-10  |  1.6 MB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Wed Jul 21 10:09:36 1993, modified Mon Apr 10 13:00:07 1995, creator 'HLX2', type 'ONLN', 1715061 bytes "Getting Started w/QD GX" , at 0x1a2bf5 9157 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 17 47 65 74 74 69 6e | 67 20 53 74 61 72 74 65 |..Gettin|g Starte|
|00000010| 64 20 77 2f 51 44 20 47 | 58 00 00 00 00 00 00 00 |d w/QD G|X.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 1a 2b 75 00 | 00 23 c5 a8 72 fe a0 ab |.....+u.|.#..r...|
|00000060| af 14 97 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9b 95 00 00 |........|........|
|00000080| 47 45 54 54 49 4e 47 20 | 53 54 41 52 54 45 44 20 |GETTING |STARTED |
|00000090| 57 49 54 48 20 51 55 49 | 43 4b 44 52 41 57 20 47 |WITH QUI|CKDRAW G|
|000000a0| 58 0d 50 45 54 45 20 28 | d2 4c 55 4b 45 d3 29 20 |X.PETE (|.LUKE.) |
|000000b0| 41 4c 45 58 41 4e 44 45 | 52 0d 41 20 62 65 74 61 |ALEXANDE|R.A beta|
|000000c0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 51 75 69 63 | version| of Quic|
|000000d0| 6b 44 72 61 77 20 47 58 | 20 63 6f 6d 65 73 20 74 |kDraw GX| comes t|
|000000e0| 6f 20 79 6f 75 20 6f 6e | 20 74 68 69 73 20 69 73 |o you on| this is|
|000000f0| 73 75 65 d5 73 20 43 44 | 2e 20 41 73 20 79 6f 75 |sue.s CD|. As you|
|00000100| 20 63 6f 6e 74 65 6d 70 | 6c 61 74 65 20 74 68 65 | contemp|late the|
|00000110| 20 76 61 73 74 20 73 63 | 6f 70 65 20 6f 66 20 69 | vast sc|ope of i|
|00000120| 74 20 61 6c 6c 2c 20 79 | 6f 75 20 6d 61 79 20 77 |t all, y|ou may w|
|00000130| 6f 6e 64 65 72 20 68 6f | 77 20 79 6f 75 d5 72 65 |onder ho|w you.re|
|00000140| 20 65 76 65 72 20 67 6f | 69 6e 67 20 74 6f 20 67 | ever go|ing to g|
|00000150| 65 74 20 79 6f 75 72 20 | 61 72 6d 73 20 61 72 6f |et your |arms aro|
|00000160| 75 6e 64 20 74 68 69 73 | 20 6e 65 77 20 69 6d 61 |und this| new ima|
|00000170| 67 69 6e 67 20 74 65 63 | 68 6e 6f 6c 6f 67 79 2e |ging tec|hnology.|
|00000180| 20 4e 6f 74 20 74 6f 20 | 77 6f 72 72 79 20 d1 20 | Not to |worry . |
|00000190| 74 68 69 73 20 61 72 74 | 69 63 6c 65 20 77 69 6c |this art|icle wil|
|000001a0| 6c 20 67 65 74 20 79 6f | 75 20 73 74 61 72 74 65 |l get yo|u starte|
|000001b0| 64 2e 20 49 74 20 77 61 | 6c 6b 73 20 79 6f 75 20 |d. It wa|lks you |
|000001c0| 74 68 72 6f 75 67 68 20 | 74 68 65 20 73 74 65 70 |through |the step|
|000001d0| 73 20 74 6f 20 67 65 74 | 74 69 6e 67 20 51 75 69 |s to get|ting Qui|
|000001e0| 63 6b 44 72 61 77 20 47 | 58 20 75 70 20 61 6e 64 |ckDraw G|X up and|
|000001f0| 20 64 72 61 77 69 6e 67 | 20 61 6e 64 20 70 72 65 | drawing| and pre|
|00000200| 73 65 6e 74 73 20 61 20 | 73 69 6d 70 6c 65 20 d2 |sents a |simple .|
|00000210| 47 58 2d 68 69 70 d3 20 | 61 70 70 6c 69 63 61 74 |GX-hip. |applicat|
|00000220| 69 6f 6e 20 73 68 65 6c | 6c 20 74 68 61 74 20 69 |ion shel|l that i|
|00000230| 6e 63 6f 72 70 6f 72 61 | 74 65 73 20 74 68 65 20 |ncorpora|tes the |
|00000240| 62 61 73 69 63 73 20 66 | 6f 72 20 79 6f 75 20 74 |basics f|or you t|
|00000250| 6f 20 65 78 70 65 72 69 | 6d 65 6e 74 20 77 69 74 |o experi|ment wit|
|00000260| 68 2e 0d 51 75 69 63 6b | 44 72 61 77 20 47 58 20 |h..Quick|Draw GX |
|00000270| 6f 66 66 65 72 73 20 64 | 65 76 65 6c 6f 70 65 72 |offers d|eveloper|
|00000280| 73 20 61 20 74 6f 74 61 | 6c 6c 79 20 6e 65 77 20 |s a tota|lly new |
|00000290| 61 6e 64 20 6d 61 72 6b | 65 64 6c 79 20 69 6d 70 |and mark|edly imp|
|000002a0| 72 6f 76 65 64 20 77 61 | 79 20 6f 66 20 69 6d 61 |roved wa|y of ima|
|000002b0| 67 69 6e 67 20 6f 6e 20 | 74 68 65 20 4d 61 63 69 |ging on |the Maci|
|000002c0| 6e 74 6f 73 68 2e 20 59 | 65 73 2c 20 79 6f 75 d5 |ntosh. Y|es, you.|
|000002d0| 6c 6c 20 68 61 76 65 20 | 74 6f 20 6c 65 61 72 6e |ll have |to learn|
|000002e0| 20 74 68 65 20 6e 65 77 | 20 73 79 73 74 65 6d 2c | the new| system,|
|000002f0| 20 62 75 74 20 6c 6f 6f | 6b 20 61 74 20 77 68 61 | but loo|k at wha|
|00000300| 74 20 79 6f 75 20 67 65 | 74 3a 20 54 68 65 20 41 |t you ge|t: The A|
|00000310| 50 49 20 69 73 20 73 69 | 6d 70 6c 65 72 20 61 6e |PI is si|mpler an|
|00000320| 64 20 74 68 65 20 68 75 | 6d 61 6e 20 69 6e 74 65 |d the hu|man inte|
|00000330| 72 66 61 63 65 20 69 73 | 20 62 65 74 74 65 72 2e |rface is| better.|
|00000340| 20 54 68 65 20 61 6d 6f | 75 6e 74 20 6f 66 20 63 | The amo|unt of c|
|00000350| 6f 6e 74 72 6f 6c 20 79 | 6f 75 72 20 61 70 70 6c |ontrol y|our appl|
|00000360| 69 63 61 74 69 6f 6e 20 | 63 61 6e 20 65 78 65 72 |ication |can exer|
|00000370| 63 69 73 65 20 6f 76 65 | 72 20 74 65 78 74 20 61 |cise ove|r text a|
|00000380| 6e 64 20 67 72 61 70 68 | 69 63 73 20 68 61 73 20 |nd graph|ics has |
|00000390| 62 65 65 6e 20 67 72 65 | 61 74 6c 79 20 69 6e 63 |been gre|atly inc|
|000003a0| 72 65 61 73 65 64 2e 20 | 59 6f 75 72 20 61 70 70 |reased. |Your app|
|000003b0| 6c 69 63 61 74 69 6f 6e | 20 77 69 6c 6c 20 62 65 |lication| will be|
|000003c0| 20 61 62 6c 65 20 74 6f | 20 70 72 6f 64 75 63 65 | able to| produce|
|000003d0| 20 63 6f 6e 73 69 73 74 | 65 6e 74 20 6f 75 74 70 | consist|ent outp|
|000003e0| 75 74 20 6e 6f 20 6d 61 | 74 74 65 72 20 77 68 61 |ut no ma|tter wha|
|000003f0| 74 20 74 68 65 20 6f 75 | 74 70 75 74 20 64 65 76 |t the ou|tput dev|
|00000400| 69 63 65 2e 20 41 6e 64 | 20 65 78 74 65 6e 73 69 |ice. And| extensi|
|00000410| 76 65 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 63 |ve suppo|rt for c|
|00000420| 6f 6c 6f 72 20 69 73 20 | 62 75 69 6c 74 20 69 6e |olor is |built in|
|00000430| 20 74 68 72 6f 75 67 68 | 6f 75 74 20 74 68 65 20 | through|out the |
|00000440| 73 79 73 74 65 6d 2e 0d | 57 69 74 68 20 74 68 65 |system..|With the|
|00000450| 20 62 65 74 61 20 76 65 | 72 73 69 6f 6e 20 6f 66 | beta ve|rsion of|
|00000460| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 69 6e | QuickDr|aw GX in|
|00000470| 20 68 61 6e 64 2c 20 79 | 6f 75 d5 72 65 20 6e 6f | hand, y|ou.re no|
|00000480| 20 64 6f 75 62 74 20 65 | 61 67 65 72 20 74 6f 20 | doubt e|ager to |
|00000490| 63 72 65 61 74 65 20 61 | 20 51 75 69 63 6b 44 72 |create a| QuickDr|
|000004a0| 61 77 20 47 58 20 61 70 | 70 6c 69 63 61 74 69 6f |aw GX ap|plicatio|
|000004b0| 6e 20 61 6e 64 20 73 74 | 61 72 74 20 64 72 61 77 |n and st|art draw|
|000004c0| 69 6e 67 2e 20 54 68 69 | 73 20 61 72 74 69 63 6c |ing. Thi|s articl|
|000004d0| 65 20 63 6f 76 65 72 73 | 20 6a 75 73 74 20 61 62 |e covers| just ab|
|000004e0| 6f 75 74 20 65 76 65 72 | 79 74 68 69 6e 67 20 79 |out ever|ything y|
|000004f0| 6f 75 20 6e 65 65 64 20 | 74 6f 20 6b 6e 6f 77 20 |ou need |to know |
|00000500| 74 6f 20 67 65 74 20 73 | 74 61 72 74 65 64 3a 20 |to get s|tarted: |
|00000510| 69 6e 69 74 69 61 6c 69 | 7a 69 6e 67 20 51 75 69 |initiali|zing Qui|
|00000520| 63 6b 44 72 61 77 20 47 | 58 2c 20 75 73 69 6e 67 |ckDraw G|X, using|
|00000530| 20 77 69 6e 64 6f 77 73 | 2c 20 63 72 65 61 74 69 | windows|, creati|
|00000540| 6e 67 20 61 6e 64 20 6d | 61 6e 69 70 75 6c 61 74 |ng and m|anipulat|
|00000550| 69 6e 67 20 51 75 69 63 | 6b 44 72 61 77 20 47 58 |ing Quic|kDraw GX|
|00000560| 20 73 68 61 70 65 73 2c | 20 70 72 69 6e 74 69 6e | shapes,| printin|
|00000570| 67 2c 20 61 6e 64 20 64 | 65 62 75 67 67 69 6e 67 |g, and d|ebugging|
|00000580| 2e 20 42 79 20 77 61 79 | 20 6f 66 20 69 6c 6c 75 |. By way| of illu|
|00000590| 73 74 72 61 74 69 6f 6e | 2c 20 77 65 20 64 69 73 |stration|, we dis|
|000005a0| 63 75 73 73 20 74 68 65 | 20 51 75 69 63 6b 44 72 |cuss the| QuickDr|
|000005b0| 61 77 20 47 58 20 73 68 | 65 6c 6c 20 74 68 61 74 |aw GX sh|ell that|
|000005c0| 20 79 6f 75 d5 6c 6c 20 | 66 69 6e 64 20 6f 6e 20 | you.ll |find on |
|000005d0| 74 68 69 73 20 69 73 73 | 75 65 d5 73 20 43 44 2e |this iss|ue.s CD.|
|000005e0| 20 42 75 74 20 62 65 66 | 6f 72 65 20 77 65 20 64 | But bef|ore we d|
|000005f0| 6f 20 74 68 61 74 2c 20 | 6c 65 74 d5 73 20 74 61 |o that, |let.s ta|
|00000600| 6b 65 20 61 20 71 75 69 | 63 6b 20 6c 6f 6f 6b 20 |ke a qui|ck look |
|00000610| 75 6e 64 65 72 20 74 68 | 65 20 68 6f 6f 64 20 61 |under th|e hood a|
|00000620| 74 20 74 68 65 20 6d 61 | 6a 6f 72 20 66 65 61 74 |t the ma|jor feat|
|00000630| 75 72 65 73 20 6f 66 20 | 51 75 69 63 6b 44 72 61 |ures of |QuickDra|
|00000640| 77 20 47 58 20 61 6e 64 | 20 68 6f 77 20 69 74 20 |w GX and| how it |
|00000650| 66 69 74 73 20 69 6e 74 | 6f 20 74 68 65 20 4d 61 |fits int|o the Ma|
|00000660| 63 69 6e 74 6f 73 68 20 | 61 72 63 68 69 74 65 63 |cintosh |architec|
|00000670| 74 75 72 65 2e 0d 51 55 | 49 43 4b 44 52 41 57 20 |ture..QU|ICKDRAW |
|00000680| 47 58 3a 20 41 20 51 55 | 49 43 4b 20 4c 4f 4f 4b |GX: A QU|ICK LOOK|
|00000690| 20 55 4e 44 45 52 20 54 | 48 45 20 48 4f 4f 44 0d | UNDER T|HE HOOD.|
|000006a0| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 63 6f 65 |QuickDra|w GX coe|
|000006b0| 78 69 73 74 73 20 68 61 | 70 70 69 6c 79 20 77 69 |xists ha|ppily wi|
|000006c0| 74 68 20 51 75 69 63 6b | 44 72 61 77 2c 20 74 68 |th Quick|Draw, th|
|000006d0| 61 6e 6b 20 67 6f 6f 64 | 6e 65 73 73 2e 20 49 74 |ank good|ness. It|
|000006e0| 20 64 6f 65 73 6e d5 74 | 20 72 65 70 6c 61 63 65 | doesn.t| replace|
|000006f0| 20 51 75 69 63 6b 44 72 | 61 77 2c 20 62 75 74 20 | QuickDr|aw, but |
|00000700| 69 6e 73 74 65 61 64 20 | d2 6d 6f 76 65 73 20 69 |instead |.moves i|
|00000710| 6e 20 6e 65 78 74 20 64 | 6f 6f 72 2c d3 20 73 6f |n next d|oor,. so|
|00000720| 20 79 6f 75 20 73 74 69 | 6c 6c 20 6c 69 76 65 20 | you sti|ll live |
|00000730| 77 69 74 68 20 61 20 4d | 61 63 69 6e 74 6f 73 68 |with a M|acintosh|
|00000740| 20 54 6f 6f 6c 62 6f 78 | 20 62 61 73 65 64 20 6f | Toolbox| based o|
|00000750| 6e 20 51 75 69 63 6b 44 | 72 61 77 2e 20 59 6f 75 |n QuickD|raw. You|
|00000760| 20 63 61 6e 20 72 75 6e | 20 51 75 69 63 6b 44 72 | can run| QuickDr|
|00000770| 61 77 2d 62 61 73 65 64 | 20 61 70 70 6c 69 63 61 |aw-based| applica|
|00000780| 74 69 6f 6e 73 20 6f 6e | 20 61 20 51 75 69 63 6b |tions on| a Quick|
|00000790| 44 72 61 77 20 47 58 20 | 73 79 73 74 65 6d 2e 20 |Draw GX |system. |
|000007a0| 54 68 65 73 65 20 61 70 | 70 6c 69 63 61 74 69 6f |These ap|plicatio|
|000007b0| 6e 73 20 77 6f 6e d5 74 | 20 65 76 65 6e 20 6e 6f |ns won.t| even no|
|000007c0| 74 69 63 65 20 74 68 61 | 74 20 51 75 69 63 6b 44 |tice tha|t QuickD|
|000007d0| 72 61 77 20 47 58 20 69 | 73 20 69 6e 73 74 61 6c |raw GX i|s instal|
|000007e0| 6c 65 64 2c 20 62 75 74 | 20 74 68 65 79 d5 6c 6c |led, but| they.ll|
|000007f0| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 74 61 6b 65 | be able| to take|
|00000800| 20 61 64 76 61 6e 74 61 | 67 65 20 6f 66 20 73 6f | advanta|ge of so|
|00000810| 6d 65 20 6f 66 20 74 68 | 65 20 51 75 69 63 6b 44 |me of th|e QuickD|
|00000820| 72 61 77 20 47 58 20 0d | 70 72 69 6e 74 69 6e 67 |raw GX .|printing|
|00000830| 20 66 65 61 74 75 72 65 | 73 2c 20 69 6e 63 6c 75 | feature|s, inclu|
|00000840| 64 69 6e 67 20 69 6d 70 | 72 6f 76 65 64 20 62 61 |ding imp|roved ba|
|00000850| 63 6b 67 72 6f 75 6e 64 | 20 70 72 69 6e 74 69 6e |ckground| printin|
|00000860| 67 20 74 6f 20 61 6c 6c | 20 64 65 76 69 63 65 73 |g to all| devices|
|00000870| 2c 20 64 65 73 6b 74 6f | 70 20 70 72 69 6e 74 65 |, deskto|p printe|
|00000880| 72 73 2c 20 70 72 69 6e | 74 20 6a 6f 62 20 71 75 |rs, prin|t job qu|
|00000890| 65 75 69 6e 67 2c 20 61 | 6e 64 20 62 65 74 74 65 |euing, a|nd bette|
|000008a0| 72 20 74 79 70 65 20 6d | 61 6e 61 67 65 6d 65 6e |r type m|anagemen|
|000008b0| 74 2e 20 0d 51 75 69 63 | 6b 44 72 61 77 20 47 58 |t. .Quic|kDraw GX|
|000008c0| 20 68 61 73 20 74 68 72 | 65 65 20 6d 61 6a 6f 72 | has thr|ee major|
|000008d0| 20 70 69 65 63 65 73 3a | 20 67 72 61 70 68 69 63 | pieces:| graphic|
|000008e0| 73 2c 20 74 79 70 6f 67 | 72 61 70 68 79 2c 20 61 |s, typog|raphy, a|
|000008f0| 6e 64 20 70 72 69 6e 74 | 69 6e 67 2e 20 59 6f 75 |nd print|ing. You|
|00000900| 20 63 61 6e 20 76 69 73 | 75 61 6c 69 7a 65 20 74 | can vis|ualize t|
|00000910| 68 65 20 72 65 6c 61 74 | 69 6f 6e 73 68 69 70 20 |he relat|ionship |
|00000920| 6f 66 20 74 68 65 73 65 | 20 74 68 72 65 65 20 64 |of these| three d|
|00000930| 69 66 66 65 72 65 6e 74 | 20 70 69 65 63 65 73 20 |ifferent| pieces |
|00000940| 74 6f 20 65 61 63 68 20 | 6f 74 68 65 72 20 61 6e |to each |other an|
|00000950| 64 20 74 6f 20 51 75 69 | 63 6b 44 72 61 77 20 61 |d to Qui|ckDraw a|
|00000960| 73 20 73 68 6f 77 6e 20 | 69 6e 20 46 69 67 75 72 |s shown |in Figur|
|00000970| 65 20 31 2e 0d 46 69 67 | 75 72 65 20 31 0d 51 75 |e 1..Fig|ure 1.Qu|
|00000980| 69 63 6b 44 72 61 77 20 | 61 6e 64 20 74 68 65 20 |ickDraw |and the |
|00000990| 50 69 65 63 65 73 20 6f | 66 20 51 75 69 63 6b 44 |Pieces o|f QuickD|
|000009a0| 72 61 77 20 47 58 0d 47 | 52 41 50 48 49 43 53 0d |raw GX.G|RAPHICS.|
|000009b0| 54 68 65 20 62 61 73 69 | 63 20 62 75 69 6c 64 69 |The basi|c buildi|
|000009c0| 6e 67 20 62 6c 6f 63 6b | 20 6f 66 20 51 75 69 63 |ng block| of Quic|
|000009d0| 6b 44 72 61 77 20 47 58 | 20 67 72 61 70 68 69 63 |kDraw GX| graphic|
|000009e0| 73 20 69 73 20 74 68 65 | 20 73 68 61 70 65 2e 20 |s is the| shape. |
|000009f0| 41 20 73 68 61 70 65 20 | 69 73 20 61 6e 20 6f 62 |A shape |is an ob|
|00000a00| 6a 65 63 74 20 74 68 61 | 74 20 63 6f 6e 74 61 69 |ject tha|t contai|
|00000a10| 6e 73 2c 20 61 6d 6f 6e | 67 20 6f 74 68 65 72 20 |ns, amon|g other |
|00000a20| 74 68 69 6e 67 73 2c 20 | 61 20 67 65 6f 6d 65 74 |things, |a geomet|
|00000a30| 72 79 20 6f 66 20 73 6f | 6d 65 20 74 79 70 65 20 |ry of so|me type |
|00000a40| 61 6e 64 20 61 20 66 69 | 6c 6c 20 70 72 6f 70 65 |and a fi|ll prope|
|00000a50| 72 74 79 20 74 68 61 74 | 20 73 70 65 63 69 66 69 |rty that| specifi|
|00000a60| 65 73 20 68 6f 77 20 74 | 68 65 20 67 65 6f 6d 65 |es how t|he geome|
|00000a70| 74 72 79 20 73 68 6f 75 | 6c 64 20 62 65 20 69 6e |try shou|ld be in|
|00000a80| 74 65 72 70 72 65 74 65 | 64 20 77 68 65 6e 20 64 |terprete|d when d|
|00000a90| 72 61 77 6e 20 28 73 75 | 63 68 20 61 73 20 66 72 |rawn (su|ch as fr|
|00000aa0| 61 6d 65 64 20 6f 72 20 | 66 69 6c 6c 65 64 29 2e |amed or |filled).|
|00000ab0| 20 0d 54 68 65 72 65 20 | 61 72 65 20 66 6f 75 72 | .There |are four|
|00000ac0| 20 62 61 73 69 63 20 74 | 79 70 65 73 20 6f 66 20 | basic t|ypes of |
|00000ad0| 73 68 61 70 65 73 2c 20 | 63 6c 61 73 73 69 66 69 |shapes, |classifi|
|00000ae0| 65 64 20 62 79 20 74 68 | 65 20 6e 61 74 75 72 65 |ed by th|e nature|
|00000af0| 20 6f 66 20 74 68 65 20 | 67 65 6f 6d 65 74 72 79 | of the |geometry|
|00000b00| 20 74 68 65 79 20 63 6f | 6e 74 61 69 6e 3a 20 67 | they co|ntain: g|
|00000b10| 65 6f 6d 65 74 72 69 63 | 20 73 68 61 70 65 73 2c |eometric| shapes,|
|00000b20| 20 74 79 70 6f 67 72 61 | 70 68 69 63 20 73 68 61 | typogra|phic sha|
|00000b30| 70 65 73 2c 20 62 69 74 | 6d 61 70 20 73 68 61 70 |pes, bit|map shap|
|00000b40| 65 73 2c 20 61 6e 64 20 | 70 69 63 74 75 72 65 73 |es, and |pictures|
|00000b50| 2e 20 0d a5 09 41 20 67 | 65 6f 6d 65 74 72 69 63 |. ...A g|eometric|
|00000b60| 20 73 68 61 70 65 20 63 | 6f 6e 74 61 69 6e 73 20 | shape c|ontains |
|00000b70| 61 20 70 72 69 6d 69 74 | 69 76 65 20 67 65 6f 6d |a primit|ive geom|
|00000b80| 65 74 72 79 3a 20 61 20 | 70 6f 69 6e 74 2c 20 61 |etry: a |point, a|
|00000b90| 20 6c 69 6e 65 2c 20 61 | 20 63 75 72 76 65 2c 20 | line, a| curve, |
|00000ba0| 61 20 72 65 63 74 61 6e | 67 6c 65 2c 20 61 20 70 |a rectan|gle, a p|
|00000bb0| 6f 6c 79 67 6f 6e 20 28 | 61 20 73 65 72 69 65 73 |olygon (|a series|
|00000bc0| 20 6f 66 20 70 6f 69 6e | 74 73 20 63 6f 6e 6e 65 | of poin|ts conne|
|00000bd0| 63 74 65 64 20 62 79 20 | 73 74 72 61 69 67 68 74 |cted by |straight|
|00000be0| 20 6c 69 6e 65 73 29 2c | 20 6f 72 20 61 20 70 61 | lines),| or a pa|
|00000bf0| 74 68 20 28 61 20 73 65 | 72 69 65 73 20 6f 66 20 |th (a se|ries of |
|00000c00| 70 6f 69 6e 74 73 20 63 | 6f 6e 6e 65 63 74 65 64 |points c|onnected|
|00000c10| 20 62 79 20 73 74 72 61 | 69 67 68 74 20 6f 72 20 | by stra|ight or |
|00000c20| 63 75 72 76 65 64 20 6c | 69 6e 65 73 29 2e 20 49 |curved l|ines). I|
|00000c30| 6e 20 61 64 64 69 74 69 | 6f 6e 2c 20 74 68 65 72 |n additi|on, ther|
|00000c40| 65 20 61 72 65 20 74 77 | 6f 20 6f 74 68 65 72 20 |e are tw|o other |
|00000c50| 73 70 65 63 69 61 6c 20 | 67 65 6f 6d 65 74 72 69 |special |geometri|
|00000c60| 63 20 73 68 61 70 65 20 | 74 79 70 65 73 3a 20 65 |c shape |types: e|
|00000c70| 6d 70 74 79 20 28 6e 6f | 20 67 65 6f 6d 65 74 72 |mpty (no| geometr|
|00000c80| 79 20 61 74 20 61 6c 6c | 29 20 61 6e 64 20 66 75 |y at all|) and fu|
|00000c90| 6c 6c 20 28 63 6f 76 65 | 72 73 20 74 68 65 20 65 |ll (cove|rs the e|
|00000ca0| 6e 74 69 72 65 20 63 6f | 6f 72 64 69 6e 61 74 65 |ntire co|ordinate|
|00000cb0| 20 73 79 73 74 65 6d 29 | 2e 20 0d a5 09 41 20 74 | system)|. ...A t|
|00000cc0| 79 70 6f 67 72 61 70 68 | 69 63 20 73 68 61 70 65 |ypograph|ic shape|
|00000cd0| 20 63 6f 6e 74 61 69 6e | 73 20 74 65 78 74 2c 20 | contain|s text, |
|00000ce0| 67 6c 79 70 68 73 20 28 | 72 65 6e 64 69 74 69 6f |glyphs (|renditio|
|00000cf0| 6e 73 20 6f 66 20 69 6e | 64 69 76 69 64 75 61 6c |ns of in|dividual|
|00000d00| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 72 20 63 | charact|ers or c|
|00000d10| 68 61 72 61 63 74 65 72 | 20 63 6f 6d 62 69 6e 61 |haracter| combina|
|00000d20| 74 69 6f 6e 73 20 6f 76 | 65 72 20 77 68 69 63 68 |tions ov|er which|
|00000d30| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|00000d40| 6e 20 68 61 73 20 64 69 | 72 65 63 74 20 63 6f 6e |n has di|rect con|
|00000d50| 74 72 6f 6c 29 2c 20 6f | 72 20 6c 61 79 6f 75 74 |trol), o|r layout|
|00000d60| 73 20 28 70 69 65 63 65 | 73 20 6f 66 20 74 65 78 |s (piece|s of tex|
|00000d70| 74 20 66 6f 72 20 77 68 | 69 63 68 20 51 75 69 63 |t for wh|ich Quic|
|00000d80| 6b 44 72 61 77 20 47 58 | 20 61 75 74 6f 6d 61 74 |kDraw GX| automat|
|00000d90| 69 63 61 6c 6c 79 20 63 | 68 6f 6f 73 65 73 20 61 |ically c|hooses a|
|00000da0| 6e 64 20 70 6f 73 69 74 | 69 6f 6e 73 20 67 6c 79 |nd posit|ions gly|
|00000db0| 70 68 73 2c 20 67 69 76 | 65 6e 20 63 65 72 74 61 |phs, giv|en certa|
|00000dc0| 69 6e 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 62 |in infor|mation b|
|00000dd0| 79 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |y the ap|plicatio|
|00000de0| 6e 29 2e 20 0d 0d a5 09 | 41 20 62 69 74 6d 61 70 |n). ....|A bitmap|
|00000df0| 20 73 68 61 70 65 20 63 | 6f 6e 74 61 69 6e 73 20 | shape c|ontains |
|00000e00| 61 20 72 65 66 65 72 65 | 6e 63 65 20 74 6f 20 61 |a refere|nce to a|
|00000e10| 20 62 6c 6f 63 6b 20 6f | 66 20 6d 65 6d 6f 72 79 | block o|f memory|
|00000e20| 20 63 6f 6e 74 61 69 6e | 69 6e 67 20 61 20 62 69 | contain|ing a bi|
|00000e30| 74 20 69 6d 61 67 65 2c | 20 61 73 20 77 65 6c 6c |t image,| as well|
|00000e40| 20 61 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 | as info|rmation |
|00000e50| 6f 6e 20 68 6f 77 20 74 | 6f 20 69 6e 74 65 72 70 |on how t|o interp|
|00000e60| 72 65 74 20 74 68 65 20 | 62 69 74 73 3a 20 74 68 |ret the |bits: th|
|00000e70| 65 20 70 69 78 65 6c 20 | 73 69 7a 65 2c 20 63 6f |e pixel |size, co|
|00000e80| 6c 6f 72 20 73 70 61 63 | 65 2c 20 63 6f 6c 6f 72 |lor spac|e, color|
|00000e90| 20 73 65 74 2c 20 61 6e | 64 20 63 6f 6c 6f 72 20 | set, an|d color |
|00000ea0| 70 72 6f 66 69 6c 65 2e | 0d a5 09 41 20 70 69 63 |profile.|...A pic|
|00000eb0| 74 75 72 65 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |ture con|tains a |
|00000ec0| 6c 69 73 74 20 6f 66 20 | 6f 74 68 65 72 20 73 68 |list of |other sh|
|00000ed0| 61 70 65 73 2e 20 54 68 | 65 20 73 68 61 70 65 73 |apes. Th|e shapes|
|00000ee0| 20 69 6e 20 74 68 65 20 | 6c 69 73 74 20 63 61 6e | in the |list can|
|00000ef0| 20 62 65 20 6f 74 68 65 | 72 20 70 69 63 74 75 72 | be othe|r pictur|
|00000f00| 65 73 2c 20 73 6f 20 74 | 68 61 74 20 61 20 70 69 |es, so t|hat a pi|
|00000f10| 63 74 75 72 65 20 69 73 | 20 61 63 74 75 61 6c 6c |cture is| actuall|
|00000f20| 79 20 61 20 68 69 65 72 | 61 72 63 68 69 63 61 6c |y a hier|archical|
|00000f30| 20 64 61 74 61 62 61 73 | 65 20 6f 66 20 73 68 61 | databas|e of sha|
|00000f40| 70 65 73 2e 0d 42 65 73 | 69 64 65 73 20 63 6f 6e |pes..Bes|ides con|
|00000f50| 74 61 69 6e 69 6e 67 20 | 61 20 67 65 6f 6d 65 74 |taining |a geomet|
|00000f60| 72 79 2c 20 61 20 73 68 | 61 70 65 20 63 6f 6e 74 |ry, a sh|ape cont|
|00000f70| 61 69 6e 73 20 72 65 66 | 65 72 65 6e 63 65 73 20 |ains ref|erences |
|00000f80| 74 6f 20 74 68 72 65 65 | 20 6f 74 68 65 72 20 6f |to three| other o|
|00000f90| 62 6a 65 63 74 73 20 74 | 68 61 74 20 64 65 73 63 |bjects t|hat desc|
|00000fa0| 72 69 62 65 20 68 6f 77 | 20 69 74 20 73 68 6f 75 |ribe how| it shou|
|00000fb0| 6c 64 20 62 65 20 72 65 | 6e 64 65 72 65 64 2e 20 |ld be re|ndered. |
|00000fc0| 54 68 65 73 65 20 6f 62 | 6a 65 63 74 73 20 61 72 |These ob|jects ar|
|00000fd0| 65 20 74 68 65 20 73 74 | 79 6c 65 2c 20 74 68 65 |e the st|yle, the|
|00000fe0| 20 74 72 61 6e 73 66 6f | 72 6d 2c 20 61 6e 64 20 | transfo|rm, and |
|00000ff0| 74 68 65 20 69 6e 6b 2e | 0d a5 09 54 68 65 20 73 |the ink.|...The s|
|00001000| 74 79 6c 65 20 64 65 66 | 69 6e 65 73 20 74 68 65 |tyle def|ines the|
|00001010| 20 70 65 6e 20 74 68 69 | 63 6b 6e 65 73 73 2c 20 | pen thi|ckness, |
|00001020| 74 68 65 20 70 6c 61 63 | 65 20 77 68 65 72 65 20 |the plac|e where |
|00001030| 74 68 65 20 70 65 6e 20 | 64 72 61 77 73 20 28 69 |the pen |draws (i|
|00001040| 6e 73 69 64 65 2c 20 6f | 75 74 73 69 64 65 2c 20 |nside, o|utside, |
|00001050| 6f 72 20 6f 6e 20 74 68 | 65 20 67 65 6f 6d 65 74 |or on th|e geomet|
|00001060| 72 79 29 2c 20 74 68 65 | 20 6b 69 6e 64 20 6f 66 |ry), the| kind of|
|00001070| 20 73 74 61 72 74 20 61 | 6e 64 20 65 6e 64 20 63 | start a|nd end c|
|00001080| 61 70 20 28 73 75 63 68 | 20 61 73 20 72 6f 75 6e |ap (such| as roun|
|00001090| 64 2c 20 70 6f 69 6e 74 | 79 2c 20 6f 72 20 73 71 |d, point|y, or sq|
|000010a0| 75 61 72 65 29 2c 20 61 | 6e 64 20 77 61 79 73 20 |uare), a|nd ways |
|000010b0| 74 6f 20 64 61 73 68 2c | 20 6a 6f 69 6e 2c 20 61 |to dash,| join, a|
|000010c0| 6e 64 20 70 61 74 74 65 | 72 6e 20 73 68 61 70 65 |nd patte|rn shape|
|000010d0| 73 2e 20 46 6f 72 20 61 | 20 74 65 78 74 20 73 68 |s. For a| text sh|
|000010e0| 61 70 65 2c 20 74 68 65 | 20 73 74 79 6c 65 20 61 |ape, the| style a|
|000010f0| 6c 73 6f 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |lso defi|nes the |
|00001100| 66 6f 6e 74 2c 20 73 69 | 7a 65 2c 20 76 61 72 69 |font, si|ze, vari|
|00001110| 61 74 69 6f 6e 2c 20 61 | 6e 64 20 74 65 78 74 20 |ation, a|nd text |
|00001120| 66 61 63 65 2e 0d a5 09 | 54 68 65 20 74 72 61 6e |face....|The tran|
|00001130| 73 66 6f 72 6d 20 63 6f | 6e 74 72 6f 6c 73 20 74 |sform co|ntrols t|
|00001140| 68 65 20 73 6b 65 77 2c | 20 73 63 61 6c 65 2c 20 |he skew,| scale, |
|00001150| 70 65 72 73 70 65 63 74 | 69 76 65 2c 20 61 6e 64 |perspect|ive, and|
|00001160| 20 63 6c 69 70 70 69 6e | 67 20 6f 66 20 74 68 65 | clippin|g of the|
|00001170| 20 67 65 6f 6d 65 74 72 | 79 2e 20 49 74 20 61 6c | geometr|y. It al|
|00001180| 73 6f 20 73 70 65 63 69 | 66 69 65 73 20 77 68 65 |so speci|fies whe|
|00001190| 72 65 20 74 6f 20 64 72 | 61 77 20 69 74 20 61 6e |re to dr|aw it an|
|000011a0| 64 20 68 6f 77 20 74 6f | 20 68 69 74 2d 74 65 73 |d how to| hit-tes|
|000011b0| 74 20 69 74 2e 0d a5 09 | 54 68 65 20 69 6e 6b 20 |t it....|The ink |
|000011c0| 74 65 6c 6c 73 20 74 68 | 65 20 73 79 73 74 65 6d |tells th|e system|
|000011d0| 20 77 68 69 63 68 20 63 | 6f 6c 6f 72 20 74 6f 20 | which c|olor to |
|000011e0| 64 72 61 77 20 74 68 65 | 20 67 65 6f 6d 65 74 72 |draw the| geometr|
|000011f0| 79 20 69 6e 2e 20 49 6e | 6b 20 61 6c 73 6f 20 69 |y in. In|k also i|
|00001200| 6e 63 6c 75 64 65 73 20 | 69 6e 66 6f 72 6d 61 74 |ncludes |informat|
|00001210| 69 6f 6e 20 61 62 6f 75 | 74 20 74 68 65 20 63 6f |ion abou|t the co|
|00001220| 6c 6f 72 20 6d 61 74 63 | 68 69 6e 67 20 61 6e 64 |lor matc|hing and|
|00001230| 20 74 72 61 6e 73 66 65 | 72 20 6d 6f 64 65 2e 0d | transfe|r mode..|
|00001240| 53 6f 6d 65 20 6f 66 20 | 74 68 65 73 65 20 6f 62 |Some of |these ob|
|00001250| 6a 65 63 74 73 20 69 6e | 20 74 75 72 6e 20 63 6f |jects in| turn co|
|00001260| 6e 74 61 69 6e 20 72 65 | 66 65 72 65 6e 63 65 73 |ntain re|ferences|
|00001270| 20 74 6f 20 6f 74 68 65 | 72 20 6f 62 6a 65 63 74 | to othe|r object|
|00001280| 73 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |s. For e|xample, |
|00001290| 61 20 74 72 61 6e 73 66 | 6f 72 6d 20 70 6f 69 6e |a transf|orm poin|
|000012a0| 74 73 20 74 6f 20 61 20 | 6c 69 73 74 20 6f 66 20 |ts to a |list of |
|000012b0| 76 69 65 77 20 70 6f 72 | 74 20 6f 62 6a 65 63 74 |view por|t object|
|000012c0| 73 20 74 68 61 74 20 64 | 65 73 63 72 69 62 65 20 |s that d|escribe |
|000012d0| 77 68 65 72 65 20 74 6f | 20 64 72 61 77 20 74 68 |where to| draw th|
|000012e0| 65 20 67 65 6f 6d 65 74 | 72 79 2e 20 41 20 76 69 |e geomet|ry. A vi|
|000012f0| 65 77 20 70 6f 72 74 20 | 69 73 20 6c 69 6b 65 20 |ew port |is like |
|00001300| 61 20 51 75 69 63 6b 44 | 72 61 77 20 67 72 61 66 |a QuickD|raw graf|
|00001310| 50 6f 72 74 20 69 6e 20 | 74 68 61 74 20 69 74 20 |Port in |that it |
|00001320| 64 65 66 69 6e 65 73 20 | 61 6e 20 61 72 65 61 20 |defines |an area |
|00001330| 6f 66 20 6c 6f 63 61 6c | 20 73 70 61 63 65 20 61 |of local| space a|
|00001340| 73 20 61 20 64 72 61 77 | 69 6e 67 20 65 6e 76 69 |s a draw|ing envi|
|00001350| 72 6f 6e 6d 65 6e 74 2e | 20 55 6e 6c 69 6b 65 20 |ronment.| Unlike |
|00001360| 61 20 67 72 61 66 50 6f | 72 74 2c 20 74 68 6f 75 |a grafPo|rt, thou|
|00001370| 67 68 2c 20 61 20 76 69 | 65 77 20 70 6f 72 74 20 |gh, a vi|ew port |
|00001380| 64 6f 65 73 6e d5 74 20 | 63 6f 6e 74 61 69 6e 20 |doesn.t |contain |
|00001390| 73 74 61 74 65 20 69 6e | 66 6f 72 6d 61 74 69 6f |state in|formatio|
|000013a0| 6e 20 61 62 6f 75 74 20 | 74 68 65 20 64 72 61 77 |n about |the draw|
|000013b0| 69 6e 67 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 20 |ing envi|ronment |
|000013c0| 28 70 65 6e 2c 20 63 6f | 6c 6f 72 2c 20 74 72 61 |(pen, co|lor, tra|
|000013d0| 6e 73 66 65 72 20 6d 6f | 64 65 2c 20 61 6e 64 20 |nsfer mo|de, and |
|000013e0| 73 6f 20 6f 6e 29 2e 20 | 41 20 76 69 65 77 20 70 |so on). |A view p|
|000013f0| 6f 72 74 20 63 6f 6e 74 | 61 69 6e 73 20 74 68 65 |ort cont|ains the|
|00001400| 20 6d 61 70 70 69 6e 67 | 20 75 73 65 64 20 74 6f | mapping| used to|
|00001410| 20 63 6f 6e 76 65 72 74 | 20 66 72 6f 6d 20 74 68 | convert| from th|
|00001420| 65 20 76 69 65 77 20 70 | 6f 72 74 d5 73 20 6c 6f |e view p|ort.s lo|
|00001430| 63 61 6c 20 73 70 61 63 | 65 20 74 6f 20 61 20 67 |cal spac|e to a g|
|00001440| 6c 6f 62 61 6c 20 73 70 | 61 63 65 20 64 65 73 63 |lobal sp|ace desc|
|00001450| 72 69 62 65 64 20 62 79 | 20 61 20 76 69 65 77 20 |ribed by| a view |
|00001460| 67 72 6f 75 70 2e 20 41 | 20 76 69 65 77 20 70 6f |group. A| view po|
|00001470| 72 74 20 6f 62 6a 65 63 | 74 20 70 6f 69 6e 74 73 |rt objec|t points|
|00001480| 20 69 6e 20 74 75 72 6e | 20 74 6f 20 61 20 6c 69 | in turn| to a li|
|00001490| 73 74 20 6f 66 20 76 69 | 65 77 20 64 65 76 69 63 |st of vi|ew devic|
|000014a0| 65 20 6f 62 6a 65 63 74 | 73 2c 20 77 68 69 63 68 |e object|s, which|
|000014b0| 20 64 65 73 63 72 69 62 | 65 20 74 68 65 20 63 6c | describ|e the cl|
|000014c0| 69 70 20 73 68 61 70 65 | 2c 20 6d 61 70 70 69 6e |ip shape|, mappin|
|000014d0| 67 2c 20 61 6e 64 20 62 | 69 74 6d 61 70 20 61 73 |g, and b|itmap as|
|000014e0| 73 6f 63 69 61 74 65 64 | 20 77 69 74 68 20 61 20 |sociated| with a |
|000014f0| 70 68 79 73 69 63 61 6c | 20 64 65 76 69 63 65 20 |physical| device |
|00001500| 73 75 63 68 20 61 73 20 | 61 20 6d 6f 6e 69 74 6f |such as |a monito|
|00001510| 72 2e 0d 41 20 73 68 61 | 70 65 20 63 61 6e 20 61 |r..A sha|pe can a|
|00001520| 6c 73 6f 20 68 61 76 65 | 20 6f 6e 65 20 6f 72 20 |lso have| one or |
|00001530| 6d 6f 72 65 20 61 74 74 | 72 69 62 75 74 65 73 2c |more att|ributes,|
|00001540| 20 77 68 69 63 68 20 6d | 6f 64 69 66 79 20 74 68 | which m|odify th|
|00001550| 65 20 73 68 61 70 65 d5 | 73 20 62 65 68 61 76 69 |e shape.|s behavi|
|00001560| 6f 72 2e 20 54 68 65 73 | 65 20 61 74 74 72 69 62 |or. Thes|e attrib|
|00001570| 75 74 65 73 20 65 6e 61 | 62 6c 65 20 79 6f 75 72 |utes ena|ble your|
|00001580| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 74 6f 20 | applica|tion to |
|00001590| 73 70 65 63 69 66 79 20 | 68 6f 77 20 61 20 73 68 |specify |how a sh|
|000015a0| 61 70 65 20 69 73 20 65 | 64 69 74 65 64 20 6f 72 |ape is e|dited or|
|000015b0| 20 68 6f 77 20 51 75 69 | 63 6b 44 72 61 77 20 47 | how Qui|ckDraw G|
|000015c0| 58 20 73 74 6f 72 65 73 | 20 74 68 65 20 73 68 61 |X stores| the sha|
|000015d0| 70 65 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |pe. For |example,|
|000015e0| 20 69 66 20 79 6f 75 20 | 73 65 74 20 74 68 65 20 | if you |set the |
|000015f0| 73 68 61 70 65 20 61 74 | 74 72 69 62 75 74 65 20 |shape at|tribute |
|00001600| 67 78 4d 61 70 54 72 61 | 6e 73 66 6f 72 6d 53 68 |gxMapTra|nsformSh|
|00001610| 61 70 65 2c 20 74 68 69 | 73 20 74 65 6c 6c 73 20 |ape, thi|s tells |
|00001620| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 74 68 61 |QuickDra|w GX tha|
|00001630| 74 20 79 6f 75 20 77 61 | 6e 74 20 69 74 20 74 6f |t you wa|nt it to|
|00001640| 20 6d 61 6e 69 70 75 6c | 61 74 65 20 74 68 65 20 | manipul|ate the |
|00001650| 74 72 61 6e 73 66 6f 72 | 6d 20 72 65 66 65 72 65 |transfor|m refere|
|00001660| 6e 63 65 64 20 62 79 20 | 74 68 65 20 73 68 61 70 |nced by |the shap|
|00001670| 65 2c 20 69 6e 73 74 65 | 61 64 20 6f 66 20 64 69 |e, inste|ad of di|
|00001680| 72 65 63 74 6c 79 20 6d | 61 6e 69 70 75 6c 61 74 |rectly m|anipulat|
|00001690| 69 6e 67 20 74 68 65 20 | 64 61 74 61 20 63 6f 6e |ing the |data con|
|000016a0| 74 61 69 6e 65 64 20 77 | 69 74 68 69 6e 20 74 68 |tained w|ithin th|
|000016b0| 65 20 67 65 6f 6d 65 74 | 72 79 20 6f 66 20 74 68 |e geomet|ry of th|
|000016c0| 65 20 73 68 61 70 65 2e | 0d 46 69 67 75 72 65 20 |e shape.|.Figure |
|000016d0| 32 20 64 65 70 69 63 74 | 73 20 74 68 65 20 73 68 |2 depict|s the sh|
|000016e0| 61 70 65 20 6f 62 6a 65 | 63 74 20 61 6e 64 20 77 |ape obje|ct and w|
|000016f0| 68 61 74 20 69 74 20 72 | 65 66 65 72 65 6e 63 65 |hat it r|eference|
|00001700| 73 2e 20 54 68 65 20 6f | 77 6e 65 72 20 63 6f 75 |s. The o|wner cou|
|00001710| 6e 74 20 69 73 20 74 68 | 65 20 6e 75 6d 62 65 72 |nt is th|e number|
|00001720| 20 6f 66 20 6f 74 68 65 | 72 20 6f 62 6a 65 63 74 | of othe|r object|
|00001730| 73 20 77 69 74 68 69 6e | 20 74 68 65 20 61 70 70 |s within| the app|
|00001740| 6c 69 63 61 74 69 6f 6e | 20 74 68 61 74 20 72 65 |lication| that re|
|00001750| 66 65 72 65 6e 63 65 20 | 74 68 61 74 20 6f 62 6a |ference |that obj|
|00001760| 65 63 74 2e 20 54 68 65 | 20 74 61 67 20 6c 69 73 |ect. The| tag lis|
|00001770| 74 20 69 73 20 61 20 6c | 69 73 74 20 6f 66 20 74 |t is a l|ist of t|
|00001780| 61 67 20 6f 62 6a 65 63 | 74 73 2c 20 77 68 69 63 |ag objec|ts, whic|
|00001790| 68 20 61 72 65 20 73 69 | 6d 70 6c 79 20 63 6f 6e |h are si|mply con|
|000017a0| 74 61 69 6e 65 72 73 20 | 66 6f 72 20 61 6e 79 20 |tainers |for any |
|000017b0| 64 61 74 61 20 74 68 65 | 20 61 70 70 6c 69 63 61 |data the| applica|
|000017c0| 74 69 6f 6e 20 61 73 73 | 6f 63 69 61 74 65 73 20 |tion ass|ociates |
|000017d0| 77 69 74 68 20 74 68 65 | 20 6f 77 6e 69 6e 67 20 |with the| owning |
|000017e0| 6f 62 6a 65 63 74 2e 0d | 0d 0d 46 69 67 75 72 65 |object..|..Figure|
|000017f0| 20 32 0d 54 68 65 20 53 | 68 61 70 65 20 4f 62 6a | 2.The S|hape Obj|
|00001800| 65 63 74 20 61 6e 64 20 | 57 68 61 74 20 49 74 20 |ect and |What It |
|00001810| 52 65 66 65 72 65 6e 63 | 65 73 0d 0d 54 59 50 4f |Referenc|es..TYPO|
|00001820| 47 52 41 50 48 59 0d 51 | 75 69 63 6b 44 72 61 77 |GRAPHY.Q|uickDraw|
|00001830| 20 47 58 20 68 61 73 20 | 61 20 73 6f 70 68 69 73 | GX has |a sophis|
|00001840| 74 69 63 61 74 65 64 20 | 74 79 70 6f 67 72 61 70 |ticated |typograp|
|00001850| 68 69 63 20 6d 6f 64 65 | 6c 20 74 68 61 74 d5 73 |hic mode|l that.s|
|00001860| 20 66 75 6c 6c 79 20 69 | 6e 74 65 67 72 61 74 65 | fully i|ntegrate|
|00001870| 64 20 77 69 74 68 20 67 | 72 61 70 68 69 63 73 2e |d with g|raphics.|
|00001880| 20 54 68 65 20 61 62 69 | 6c 69 74 79 20 74 6f 20 | The abi|lity to |
|00001890| 64 6f 20 6b 65 72 6e 69 | 6e 67 2c 20 74 72 61 63 |do kerni|ng, trac|
|000018a0| 6b 69 6e 67 2c 20 61 6e | 64 20 6a 75 73 74 69 66 |king, an|d justif|
|000018b0| 69 63 61 74 69 6f 6e 2c | 20 61 73 20 77 65 6c 6c |ication,| as well|
|000018c0| 20 61 73 20 6c 69 67 61 | 74 75 72 65 73 20 61 6e | as liga|tures an|
|000018d0| 64 20 6f 72 6e 61 6d 65 | 6e 74 61 6c 20 66 6f 72 |d orname|ntal for|
|000018e0| 6d 73 20 6f 66 20 76 61 | 72 69 6f 75 73 20 63 68 |ms of va|rious ch|
|000018f0| 61 72 61 63 74 65 72 73 | 2c 20 69 73 20 70 72 6f |aracters|, is pro|
|00001900| 76 69 64 65 64 20 62 79 | 20 74 68 65 20 6c 69 6e |vided by| the lin|
|00001910| 65 20 6c 61 79 6f 75 74 | 20 72 6f 75 74 69 6e 65 |e layout| routine|
|00001920| 73 2c 20 73 75 70 70 6f | 72 74 65 64 20 62 79 20 |s, suppo|rted by |
|00001930| 74 68 65 20 51 75 69 63 | 6b 44 72 61 77 20 47 58 |the Quic|kDraw GX|
|00001940| 20 73 6d 61 72 74 20 66 | 6f 6e 74 20 66 6f 72 6d | smart f|ont form|
|00001950| 61 74 2e 20 54 68 65 20 | 6c 69 6e 65 20 6c 61 79 |at. The |line lay|
|00001960| 6f 75 74 20 72 6f 75 74 | 69 6e 65 73 20 77 6f 72 |out rout|ines wor|
|00001970| 6b 20 77 69 74 68 20 74 | 68 65 20 74 79 70 6f 67 |k with t|he typog|
|00001980| 72 61 70 68 69 63 20 69 | 6e 66 6f 72 6d 61 74 69 |raphic i|nformati|
|00001990| 6f 6e 20 63 6f 6e 74 61 | 69 6e 65 64 20 69 6e 20 |on conta|ined in |
|000019a0| 74 68 65 20 54 72 75 65 | 54 79 70 65 20 47 58 20 |the True|Type GX |
|000019b0| 61 6e 64 20 54 79 70 65 | 20 31 20 47 58 20 66 6f |and Type| 1 GX fo|
|000019c0| 6e 74 73 20 74 6f 20 67 | 69 76 65 20 79 6f 75 20 |nts to g|ive you |
|000019d0| 61 20 74 6f 6e 20 6f 66 | 20 63 6f 6e 74 72 6f 6c |a ton of| control|
|000019e0| 20 6f 76 65 72 20 68 6f | 77 20 74 65 78 74 20 69 | over ho|w text i|
|000019f0| 73 20 70 6c 61 63 65 64 | 20 6f 6e 20 61 20 70 61 |s placed| on a pa|
|00001a00| 67 65 2e 20 0d 42 65 63 | 61 75 73 65 20 51 75 69 |ge. .Bec|ause Qui|
|00001a10| 63 6b 44 72 61 77 20 47 | 58 20 74 79 70 6f 67 72 |ckDraw G|X typogr|
|00001a20| 61 70 68 79 20 69 73 20 | 66 75 6c 6c 79 20 69 6e |aphy is |fully in|
|00001a30| 74 65 67 72 61 74 65 64 | 20 77 69 74 68 20 67 72 |tegrated| with gr|
|00001a40| 61 70 68 69 63 73 2c 20 | 79 6f 75 20 63 61 6e 20 |aphics, |you can |
|00001a50| 72 6f 74 61 74 65 2c 20 | 73 6b 65 77 2c 20 61 6e |rotate, |skew, an|
|00001a60| 64 20 63 68 61 6e 67 65 | 20 74 68 65 20 70 65 72 |d change| the per|
|00001a70| 73 70 65 63 74 69 76 65 | 20 6f 66 20 74 79 70 6f |spective| of typo|
|00001a80| 67 72 61 70 68 69 63 20 | 73 68 61 70 65 73 20 74 |graphic |shapes t|
|00001a90| 68 65 20 73 61 6d 65 20 | 77 61 79 20 79 6f 75 20 |he same |way you |
|00001aa0| 63 61 6e 20 67 65 6f 6d | 65 74 72 69 63 20 73 68 |can geom|etric sh|
|00001ab0| 61 70 65 73 2e 20 59 6f | 75 20 63 61 6e 20 75 73 |apes. Yo|u can us|
|00001ac0| 65 20 74 68 65 20 74 65 | 78 74 20 73 68 61 70 65 |e the te|xt shape|
|00001ad0| 20 74 6f 20 64 72 61 77 | 20 61 20 6c 69 6e 65 20 | to draw| a line |
|00001ae0| 6f 66 20 74 65 78 74 20 | 77 69 74 68 20 6f 6e 65 |of text |with one|
|00001af0| 20 73 74 79 6c 65 2e 20 | 54 68 65 20 67 6c 79 70 | style. |The glyp|
|00001b00| 68 20 73 68 61 70 65 20 | 65 6e 61 62 6c 65 73 20 |h shape |enables |
|00001b10| 79 6f 75 20 74 6f 20 64 | 72 61 77 20 74 65 78 74 |you to d|raw text|
|00001b20| 20 69 6e 20 73 65 76 65 | 72 61 6c 20 73 74 79 6c | in seve|ral styl|
|00001b30| 65 73 20 61 6e 64 20 67 | 72 61 70 68 69 63 61 6c |es and g|raphical|
|00001b40| 6c 79 20 6d 61 6e 69 70 | 75 6c 61 74 65 20 65 61 |ly manip|ulate ea|
|00001b50| 63 68 20 67 6c 79 70 68 | 2e 20 54 68 65 20 6c 61 |ch glyph|. The la|
|00001b60| 79 6f 75 74 20 73 68 61 | 70 65 20 75 73 65 73 20 |yout sha|pe uses |
|00001b70| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00001b80| 63 6f 6e 74 61 69 6e 65 | 64 20 69 6e 20 61 20 54 |containe|d in a T|
|00001b90| 72 75 65 54 79 70 65 20 | 47 58 20 6f 72 20 54 79 |rueType |GX or Ty|
|00001ba0| 70 65 20 31 20 47 58 20 | 66 6f 6e 74 20 74 6f 20 |pe 1 GX |font to |
|00001bb0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 20 6b 65 |automati|cally ke|
|00001bc0| 72 6e 2c 20 6a 75 73 74 | 69 66 79 2c 20 61 6e 64 |rn, just|ify, and|
|00001bd0| 20 74 72 61 63 6b 2c 20 | 61 6e 64 20 74 6f 20 73 | track, |and to s|
|00001be0| 75 70 70 6f 72 74 20 6c | 69 67 61 74 75 72 65 73 |upport l|igatures|
|00001bf0| 2c 20 66 69 6e 61 6c 20 | 66 6f 72 6d 73 20 28 73 |, final |forms (s|
|00001c00| 70 65 63 69 61 6c 20 66 | 6f 72 6d 73 20 66 6f 75 |pecial f|orms fou|
|00001c10| 6e 64 20 61 74 20 74 68 | 65 20 65 6e 64 73 20 6f |nd at th|e ends o|
|00001c20| 66 20 77 6f 72 64 73 29 | 2c 20 61 6e 64 20 6f 72 |f words)|, and or|
|00001c30| 6e 61 6d 65 6e 74 61 6c | 20 66 6f 72 6d 73 20 6f |namental| forms o|
|00001c40| 66 20 74 68 65 20 76 61 | 72 69 6f 75 73 20 67 6c |f the va|rious gl|
|00001c50| 79 70 68 73 20 63 6f 6e | 74 61 69 6e 65 64 20 77 |yphs con|tained w|
|00001c60| 69 74 68 69 6e 20 74 68 | 65 20 6c 61 79 6f 75 74 |ithin th|e layout|
|00001c70| 20 73 68 61 70 65 2e 0d | 4e 6f 74 65 20 74 68 61 | shape..|Note tha|
|00001c80| 74 20 61 6c 74 68 6f 75 | 67 68 20 51 75 69 63 6b |t althou|gh Quick|
|00001c90| 44 72 61 77 20 47 58 20 | 73 75 70 70 6f 72 74 73 |Draw GX |supports|
|00001ca0| 20 61 6c 6c 20 65 78 69 | 73 74 69 6e 67 20 4d 61 | all exi|sting Ma|
|00001cb0| 63 69 6e 74 6f 73 68 20 | 66 6f 6e 74 20 66 6f 72 |cintosh |font for|
|00001cc0| 6d 61 74 73 20 28 54 79 | 70 65 20 31 2c 20 62 69 |mats (Ty|pe 1, bi|
|00001cd0| 74 6d 61 70 2c 20 61 6e | 64 20 54 72 75 65 54 79 |tmap, an|d TrueTy|
|00001ce0| 70 65 29 2c 20 74 6f 20 | 74 61 6b 65 20 66 75 6c |pe), to |take ful|
|00001cf0| 6c 20 61 64 76 61 6e 74 | 61 67 65 20 6f 66 20 69 |l advant|age of i|
|00001d00| 74 73 20 65 78 74 65 6e | 73 69 76 65 20 6c 69 6e |ts exten|sive lin|
|00001d10| 65 20 6c 61 79 6f 75 74 | 20 63 61 70 61 62 69 6c |e layout| capabil|
|00001d20| 69 74 69 65 73 20 79 6f | 75 20 6d 75 73 74 20 75 |ities yo|u must u|
|00001d30| 73 65 20 54 72 75 65 54 | 79 70 65 20 47 58 20 6f |se TrueT|ype GX o|
|00001d40| 72 20 54 79 70 65 20 31 | 20 47 58 20 66 6f 6e 74 |r Type 1| GX font|
|00001d50| 73 2e 0d 50 52 49 4e 54 | 49 4e 47 0d 51 75 69 63 |s..PRINT|ING.Quic|
|00001d60| 6b 44 72 61 77 20 47 58 | 20 69 6d 70 72 6f 76 65 |kDraw GX| improve|
|00001d70| 73 20 70 72 69 6e 74 69 | 6e 67 20 66 6f 72 20 62 |s printi|ng for b|
|00001d80| 6f 74 68 20 75 73 65 72 | 73 20 61 6e 64 20 64 65 |oth user|s and de|
|00001d90| 76 65 6c 6f 70 65 72 73 | 2e 20 55 73 65 72 73 20 |velopers|. Users |
|00001da0| 67 65 74 20 61 6e 20 69 | 6d 70 72 6f 76 65 64 20 |get an i|mproved |
|00001db0| 68 75 6d 61 6e 20 69 6e | 74 65 72 66 61 63 65 2c |human in|terface,|
|00001dc0| 20 61 6e 64 20 64 65 76 | 65 6c 6f 70 65 72 73 20 | and dev|elopers |
|00001dd0| 67 65 74 20 6d 75 63 68 | 20 6d 6f 72 65 20 63 6f |get much| more co|
|00001de0| 6e 74 72 6f 6c 20 61 6e | 64 20 66 75 6e 63 74 69 |ntrol an|d functi|
|00001df0| 6f 6e 61 6c 69 74 79 2e | 20 46 72 6f 6d 20 74 68 |onality.| From th|
|00001e00| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e d5 73 20 |e applic|ation.s |
|00001e10| 70 6f 69 6e 74 20 6f 66 | 20 76 69 65 77 2c 20 51 |point of| view, Q|
|00001e20| 75 69 63 6b 44 72 61 77 | 20 47 58 20 6f 66 66 65 |uickDraw| GX offe|
|00001e30| 72 73 20 74 72 75 65 20 | 64 65 76 69 63 65 20 69 |rs true |device i|
|00001e40| 6e 64 65 70 65 6e 64 65 | 6e 63 65 3a 20 79 6f 75 |ndepende|nce: you|
|00001e50| 20 63 61 6e 20 73 65 6e | 64 20 74 68 65 20 73 61 | can sen|d the sa|
|00001e60| 6d 65 20 64 61 74 61 20 | 74 6f 20 61 6c 6c 20 73 |me data |to all s|
|00001e70| 75 70 70 6f 72 74 65 64 | 20 64 65 76 69 63 65 73 |upported| devices|
|00001e80| 20 61 6e 64 20 74 68 65 | 20 6f 75 74 70 75 74 20 | and the| output |
|00001e90| 77 69 6c 6c 20 62 65 20 | 72 65 6e 64 65 72 65 64 |will be |rendered|
|00001ea0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 6c 79 20 6f | appropr|iately o|
|00001eb0| 6e 20 65 61 63 68 20 64 | 65 76 69 63 65 2e 20 0d |n each d|evice. .|
|00001ec0| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 69 6e 74 |QuickDra|w GX int|
|00001ed0| 72 6f 64 75 63 65 73 20 | 74 68 72 65 65 20 6e 65 |roduces |three ne|
|00001ee0| 77 20 70 72 69 6e 74 69 | 6e 67 20 63 6f 6e 63 65 |w printi|ng conce|
|00001ef0| 70 74 73 3a 20 64 65 73 | 6b 74 6f 70 20 70 72 69 |pts: des|ktop pri|
|00001f00| 6e 74 65 72 73 2c 20 70 | 6f 72 74 61 62 6c 65 20 |nters, p|ortable |
|00001f10| 64 69 67 69 74 61 6c 20 | 64 6f 63 75 6d 65 6e 74 |digital |document|
|00001f20| 73 2c 20 61 6e 64 20 70 | 72 69 6e 74 69 6e 67 20 |s, and p|rinting |
|00001f30| 65 78 74 65 6e 73 69 6f | 6e 73 2e 20 0d 55 73 65 |extensio|ns. .Use|
|00001f40| 72 73 20 63 61 6e 20 63 | 72 65 61 74 65 20 64 65 |rs can c|reate de|
|00001f50| 73 6b 74 6f 70 20 70 72 | 69 6e 74 65 72 73 20 77 |sktop pr|inters w|
|00001f60| 69 74 68 20 74 68 65 20 | 43 68 6f 6f 73 65 72 2e |ith the |Chooser.|
|00001f70| 20 54 68 65 73 65 20 61 | 72 65 20 72 65 70 72 65 | These a|re repre|
|00001f80| 73 65 6e 74 65 64 20 61 | 73 20 69 63 6f 6e 73 20 |sented a|s icons |
|00001f90| 6f 6e 20 74 68 65 20 64 | 65 73 6b 74 6f 70 20 61 |on the d|esktop a|
|00001fa0| 6e 64 20 61 72 65 20 66 | 75 6c 6c 20 46 69 6e 64 |nd are f|ull Find|
|00001fb0| 65 72 20 63 69 74 69 7a | 65 6e 73 3b 20 75 73 65 |er citiz|ens; use|
|00001fc0| 72 73 20 63 61 6e 20 64 | 72 61 67 20 61 6e 64 20 |rs can d|rag and |
|00001fd0| 64 72 6f 70 20 70 72 69 | 6e 74 20 66 69 6c 65 73 |drop pri|nt files|
|00001fe0| 20 61 6e 64 20 64 6f 63 | 75 6d 65 6e 74 73 20 74 | and doc|uments t|
|00001ff0| 6f 20 74 68 65 6d 2e 20 | 55 73 65 72 73 20 63 61 |o them. |Users ca|
|00002000| 6e 20 61 6c 73 6f 20 6d | 61 6e 61 67 65 20 74 68 |n also m|anage th|
|00002010| 65 20 70 72 69 6e 74 20 | 71 75 65 75 65 20 61 6e |e print |queue an|
|00002020| 64 20 72 65 64 69 72 65 | 63 74 20 70 72 69 6e 74 |d redire|ct print|
|00002030| 20 66 69 6c 65 73 20 61 | 6e 64 20 64 6f 63 75 6d | files a|nd docum|
|00002040| 65 6e 74 73 20 62 79 20 | 64 72 61 67 67 69 6e 67 |ents by |dragging|
|00002050| 20 74 68 65 6d 20 74 6f | 20 61 6e 64 20 66 72 6f | them to| and fro|
|00002060| 6d 20 64 65 73 6b 74 6f | 70 20 70 72 69 6e 74 65 |m deskto|p printe|
|00002070| 72 73 2c 20 61 6e 64 20 | 63 61 6e 20 73 68 61 72 |rs, and |can shar|
|00002080| 65 20 64 65 73 6b 74 6f | 70 20 70 72 69 6e 74 65 |e deskto|p printe|
|00002090| 72 73 20 77 69 74 68 20 | 6f 74 68 65 72 20 75 73 |rs with |other us|
|000020a0| 65 72 73 20 76 69 61 20 | 50 72 69 6e 74 65 72 53 |ers via |PrinterS|
|000020b0| 68 61 72 65 20 47 58 2e | 0d 41 20 70 6f 72 74 61 |hare GX.|.A porta|
|000020c0| 62 6c 65 20 64 69 67 69 | 74 61 6c 20 64 6f 63 75 |ble digi|tal docu|
|000020d0| 6d 65 6e 74 20 28 50 44 | 44 29 20 66 69 6c 65 20 |ment (PD|D) file |
|000020e0| 63 6f 6e 74 61 69 6e 73 | 20 61 6c 6c 20 74 68 65 |contains| all the|
|000020f0| 20 6f 62 6a 65 63 74 73 | 20 72 65 71 75 69 72 65 | objects| require|
|00002100| 64 20 74 6f 20 72 65 6e | 64 65 72 20 61 20 64 6f |d to ren|der a do|
|00002110| 63 75 6d 65 6e 74 20 6f | 6e 20 61 20 73 63 72 65 |cument o|n a scre|
|00002120| 65 6e 20 6f 72 20 70 72 | 69 6e 74 65 72 2c 20 73 |en or pr|inter, s|
|00002130| 6f 20 79 6f 75 20 63 61 | 6e 20 6f 70 65 6e 2c 20 |o you ca|n open, |
|00002140| 72 65 76 69 65 77 2c 20 | 61 6e 64 20 70 72 69 6e |review, |and prin|
|00002150| 74 20 74 68 65 20 66 69 | 6c 65 20 6f 6e 20 61 6e |t the fi|le on an|
|00002160| 79 20 73 79 73 74 65 6d | 20 72 75 6e 6e 69 6e 67 |y system| running|
|00002170| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 77 69 | QuickDr|aw GX wi|
|00002180| 74 68 6f 75 74 20 74 68 | 65 20 61 70 70 6c 69 63 |thout th|e applic|
|00002190| 61 74 69 6f 6e 20 6f 72 | 20 66 6f 6e 74 73 20 75 |ation or| fonts u|
|000021a0| 73 65 64 20 74 6f 20 63 | 72 65 61 74 65 20 74 68 |sed to c|reate th|
|000021b0| 65 20 64 6f 63 75 6d 65 | 6e 74 2e 20 57 68 65 6e |e docume|nt. When|
|000021c0| 20 61 20 50 44 44 20 66 | 69 6c 65 20 69 73 20 63 | a PDD f|ile is c|
|000021d0| 72 65 61 74 65 64 2c 20 | 6f 6e 6c 79 20 74 68 65 |reated, |only the|
|000021e0| 20 67 6c 79 70 68 73 20 | 75 73 65 64 20 69 6e 20 | glyphs |used in |
|000021f0| 74 68 65 20 64 6f 63 75 | 6d 65 6e 74 20 61 72 65 |the docu|ment are|
|00002200| 20 73 61 76 65 64 20 61 | 6c 6f 6e 67 20 77 69 74 | saved a|long wit|
|00002210| 68 20 69 74 3b 20 73 69 | 6e 63 65 20 74 68 65 20 |h it; si|nce the |
|00002220| 64 6f 63 75 6d 65 6e 74 | 20 63 61 6e d5 74 20 76 |document| can.t v|
|00002230| 65 72 79 20 77 65 6c 6c | 20 62 65 20 65 64 69 74 |ery well| be edit|
|00002240| 65 64 2c 20 74 68 65 20 | 50 44 44 20 69 73 20 73 |ed, the |PDD is s|
|00002250| 65 63 75 72 65 20 66 6f | 72 20 74 72 61 6e 73 70 |ecure fo|r transp|
|00002260| 6f 72 74 69 6e 67 20 66 | 6f 6e 74 73 2e 20 57 68 |orting f|onts. Wh|
|00002270| 65 6e 20 79 6f 75 20 70 | 72 69 6e 74 2c 20 79 6f |en you p|rint, yo|
|00002280| 75 20 63 61 6e 20 73 61 | 76 65 20 74 68 65 20 70 |u can sa|ve the p|
|00002290| 72 69 6e 74 20 6a 6f 62 | 20 61 73 20 61 20 50 44 |rint job| as a PD|
|000022a0| 44 20 77 69 74 68 20 6f | 72 20 77 69 74 68 6f 75 |D with o|r withou|
|000022b0| 74 20 74 68 65 20 66 6f | 6e 74 73 20 72 65 71 75 |t the fo|nts requ|
|000022c0| 69 72 65 64 2e 20 49 66 | 20 79 6f 75 20 6b 6e 6f |ired. If| you kno|
|000022d0| 77 20 74 68 61 74 20 74 | 68 65 20 70 65 72 73 6f |w that t|he perso|
|000022e0| 6e 20 79 6f 75 d5 72 65 | 20 73 65 6e 64 69 6e 67 |n you.re| sending|
|000022f0| 20 74 68 65 20 50 44 44 | 20 66 69 6c 65 20 74 6f | the PDD| file to|
|00002300| 20 68 61 73 20 74 68 65 | 20 66 6f 6e 74 73 20 79 | has the| fonts y|
|00002310| 6f 75 20 75 73 65 64 2c | 20 79 6f 75 20 63 61 6e |ou used,| you can|
|00002320| 20 63 68 6f 6f 73 65 20 | 6e 6f 74 20 74 6f 20 73 | choose |not to s|
|00002330| 61 76 65 20 74 68 65 20 | 66 6f 6e 74 73 20 77 69 |ave the |fonts wi|
|00002340| 74 68 20 74 68 65 20 50 | 44 44 2e 0d 0d 50 72 69 |th the P|DD...Pri|
|00002350| 6e 74 69 6e 67 20 65 78 | 74 65 6e 73 69 6f 6e 73 |nting ex|tensions|
|00002360| 20 61 72 65 20 73 6d 61 | 6c 6c 20 73 74 61 6e 64 | are sma|ll stand|
|00002370| 61 6c 6f 6e 65 20 70 69 | 65 63 65 73 20 6f 66 20 |alone pi|eces of |
|00002380| 63 6f 64 65 20 74 68 61 | 74 20 6d 6f 64 69 66 79 |code tha|t modify|
|00002390| 20 74 68 65 20 62 65 68 | 61 76 69 6f 72 20 6f 66 | the beh|avior of|
|000023a0| 20 70 72 69 6e 74 69 6e | 67 20 61 6e 64 20 67 69 | printin|g and gi|
|000023b0| 76 65 20 75 73 65 72 73 | 20 76 61 73 74 6c 79 20 |ve users| vastly |
|000023c0| 69 6e 63 72 65 61 73 65 | 64 20 63 6f 6e 74 72 6f |increase|d contro|
|000023d0| 6c 2c 20 61 74 20 61 20 | 73 79 73 74 65 6d 20 72 |l, at a |system r|
|000023e0| 61 74 68 65 72 20 74 68 | 61 6e 20 61 20 70 72 6f |ather th|an a pro|
|000023f0| 67 72 61 6d 20 6c 65 76 | 65 6c 2c 20 6f 76 65 72 |gram lev|el, over|
|00002400| 20 68 6f 77 20 61 20 70 | 72 69 6e 74 65 64 20 70 | how a p|rinted p|
|00002410| 61 67 65 20 6c 6f 6f 6b | 73 2e 20 46 6f 72 20 65 |age look|s. For e|
|00002420| 78 61 6d 70 6c 65 2c 20 | 74 68 72 6f 75 67 68 20 |xample, |through |
|00002430| 61 20 70 72 69 6e 74 69 | 6e 67 20 65 78 74 65 6e |a printi|ng exten|
|00002440| 73 69 6f 6e 20 74 68 65 | 20 75 73 65 72 20 63 61 |sion the| user ca|
|00002450| 6e 20 64 69 72 65 63 74 | 20 61 20 70 72 69 6e 74 |n direct| a print|
|00002460| 65 72 20 74 6f 20 70 72 | 69 6e 74 20 d2 43 6f 6e |er to pr|int .Con|
|00002470| 66 69 64 65 6e 74 69 61 | 6c d3 20 64 69 61 67 6f |fidentia|l. diago|
|00002480| 6e 61 6c 6c 79 20 61 63 | 72 6f 73 73 20 65 61 63 |nally ac|ross eac|
|00002490| 68 20 70 61 67 65 2c 20 | 6e 6f 20 6d 61 74 74 65 |h page, |no matte|
|000024a0| 72 20 77 68 61 74 20 70 | 72 6f 67 72 61 6d 20 69 |r what p|rogram i|
|000024b0| 73 20 64 6f 69 6e 67 20 | 74 68 65 20 70 72 69 6e |s doing |the prin|
|000024c0| 74 69 6e 67 2e 20 54 68 | 65 20 75 73 65 72 20 73 |ting. Th|e user s|
|000024d0| 65 6c 65 63 74 73 20 61 | 20 70 72 69 6e 74 69 6e |elects a| printin|
|000024e0| 67 20 65 78 74 65 6e 73 | 69 6f 6e 20 66 72 6f 6d |g extens|ion from|
|000024f0| 20 61 20 6c 69 73 74 20 | 64 69 73 70 6c 61 79 65 | a list |displaye|
|00002500| 64 20 69 6e 20 74 68 65 | 20 65 78 70 61 6e 64 65 |d in the| expande|
|00002510| 64 20 50 72 69 6e 74 2c | 20 42 79 20 50 61 67 65 |d Print,| By Page|
|00002520| 20 53 65 74 75 70 2c 20 | 61 6e 64 20 44 6f 63 75 | Setup, |and Docu|
|00002530| 6d 65 6e 74 20 53 65 74 | 75 70 20 64 69 61 6c 6f |ment Set|up dialo|
|00002540| 67 73 20 28 77 68 69 63 | 68 20 61 70 70 65 61 72 |gs (whic|h appear|
|00002550| 20 77 68 65 6e 20 4d 6f | 72 65 20 43 68 6f 69 63 | when Mo|re Choic|
|00002560| 65 73 20 69 73 20 63 6c | 69 63 6b 65 64 20 69 6e |es is cl|icked in|
|00002570| 20 74 68 65 20 72 65 67 | 75 6c 61 72 20 64 69 61 | the reg|ular dia|
|00002580| 6c 6f 67 73 29 2e 20 0d | 54 68 65 20 41 50 49 20 |logs). .|The API |
|00002590| 66 6f 72 20 51 75 69 63 | 6b 44 72 61 77 20 47 58 |for Quic|kDraw GX|
|000025a0| 20 70 72 69 6e 74 69 6e | 67 20 67 69 76 65 73 20 | printin|g gives |
|000025b0| 79 6f 75 20 65 61 73 79 | 20 61 63 63 65 73 73 20 |you easy| access |
|000025c0| 74 6f 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |to infor|mation a|
|000025d0| 62 6f 75 74 20 74 68 65 | 20 70 61 67 65 20 73 69 |bout the| page si|
|000025e0| 7a 65 20 61 6e 64 20 6f | 72 69 65 6e 74 61 74 69 |ze and o|rientati|
|000025f0| 6f 6e 20 6f 66 20 61 20 | 70 72 69 6e 74 20 6a 6f |on of a |print jo|
|00002600| 62 20 61 6e 64 20 65 6e | 61 62 6c 65 73 20 79 6f |b and en|ables yo|
|00002610| 75 20 74 6f 20 6b 65 65 | 70 20 74 68 65 20 75 73 |u to kee|p the us|
|00002620| 65 72 20 66 72 6f 6d 20 | 63 68 61 6e 67 69 6e 67 |er from |changing|
|00002630| 20 74 68 65 73 65 20 73 | 65 74 74 69 6e 67 73 2e | these s|ettings.|
|00002640| 20 0d 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 73 | .QuickD|raw GX s|
|00002650| 75 70 70 6f 72 74 73 20 | 72 61 73 74 65 72 2c 20 |upports |raster, |
|00002660| 76 65 63 74 6f 72 2c 20 | 61 6e 64 20 50 6f 73 74 |vector, |and Post|
|00002670| 53 63 72 69 70 74 aa 20 | 64 65 76 69 63 65 73 2e |Script. |devices.|
|00002680| 20 54 68 65 20 62 61 64 | 20 6e 65 77 73 20 69 73 | The bad| news is|
|00002690| 20 0d 74 68 61 74 20 69 | 66 20 79 6f 75 72 20 73 | .that i|f your s|
|000026a0| 79 73 74 65 6d 20 69 73 | 20 72 75 6e 6e 69 6e 67 |ystem is| running|
|000026b0| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 2c 20 79 | QuickDr|aw GX, y|
|000026c0| 6f 75 20 77 6f 6e d5 74 | 20 62 65 20 61 62 6c 65 |ou won.t| be able|
|000026d0| 20 74 6f 20 75 73 65 20 | 61 6e 79 20 6e 6f 6e d0 | to use |any non.|
|000026e0| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 70 72 69 |QuickDra|w GX pri|
|000026f0| 6e 74 65 72 20 64 72 69 | 76 65 72 73 2e 20 54 68 |nter dri|vers. Th|
|00002700| 65 20 67 6f 6f 64 20 6e | 65 77 73 20 69 73 20 74 |e good n|ews is t|
|00002710| 68 61 74 20 62 65 63 61 | 75 73 65 20 51 75 69 63 |hat beca|use Quic|
|00002720| 6b 44 72 61 77 20 47 58 | 20 70 72 6f 76 69 64 65 |kDraw GX| provide|
|00002730| 73 20 73 79 73 74 65 6d | 2d 6c 65 76 65 6c 20 73 |s system|-level s|
|00002740| 75 70 70 6f 72 74 20 66 | 6f 72 20 64 65 76 65 6c |upport f|or devel|
|00002750| 6f 70 69 6e 67 20 70 72 | 69 6e 74 65 72 20 64 72 |oping pr|inter dr|
|00002760| 69 76 65 72 73 2c 20 69 | 74 d5 73 20 61 20 77 68 |ivers, i|t.s a wh|
|00002770| 6f 6c 65 20 6c 6f 74 20 | 65 61 73 69 65 72 20 74 |ole lot |easier t|
|00002780| 6f 20 64 65 76 65 6c 6f | 70 20 70 72 69 6e 74 65 |o develo|p printe|
|00002790| 72 20 64 72 69 76 65 72 | 73 20 66 6f 72 20 51 75 |r driver|s for Qu|
|000027a0| 69 63 6b 44 72 61 77 20 | 47 58 20 74 68 61 6e 20 |ickDraw |GX than |
|000027b0| 69 74 20 69 73 20 66 6f | 72 20 74 68 65 20 6f 6c |it is fo|r the ol|
|000027c0| 64 20 51 75 69 63 6b 44 | 72 61 77 2d 62 61 73 65 |d QuickD|raw-base|
|000027d0| 64 20 70 72 69 6e 74 69 | 6e 67 20 61 72 63 68 69 |d printi|ng archi|
|000027e0| 74 65 63 74 75 72 65 20 | d1 20 79 6f 75 20 63 61 |tecture |. you ca|
|000027f0| 6e 20 70 6c 61 6e 20 6f | 6e 20 6d 6f 6e 74 68 73 |n plan o|n months|
|00002800| 20 6f 66 20 64 65 76 65 | 6c 6f 70 6d 65 6e 74 20 | of deve|lopment |
|00002810| 74 69 6d 65 20 61 73 20 | 6f 70 70 6f 73 65 64 20 |time as |opposed |
|00002820| 74 6f 20 79 65 61 72 73 | 2e 20 41 6e 64 20 69 6e |to years|. And in|
|00002830| 20 6d 61 6e 79 20 63 61 | 73 65 73 20 79 6f 75 20 | many ca|ses you |
|00002840| 6d 61 79 20 66 69 6e 64 | 20 74 68 61 74 20 61 20 |may find| that a |
|00002850| 70 72 69 6e 74 69 6e 67 | 20 65 78 74 65 6e 73 69 |printing| extensi|
|00002860| 6f 6e 2c 20 77 68 69 63 | 68 20 69 73 20 65 61 73 |on, whic|h is eas|
|00002870| 69 65 72 20 79 65 74 20 | 74 6f 20 64 65 76 65 6c |ier yet |to devel|
|00002880| 6f 70 2c 20 77 69 6c 6c | 20 73 75 66 66 69 63 65 |op, will| suffice|
|00002890| 20 74 6f 20 69 6d 70 6c | 65 6d 65 6e 74 20 74 68 | to impl|ement th|
|000028a0| 65 20 64 65 73 69 72 65 | 64 20 66 75 6e 63 74 69 |e desire|d functi|
|000028b0| 6f 6e 61 6c 69 74 79 3b | 20 66 6f 72 20 6d 6f 72 |onality;| for mor|
|000028c0| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2c 20 73 |e inform|ation, s|
|000028d0| 65 65 20 74 68 65 20 61 | 72 74 69 63 6c 65 20 d2 |ee the a|rticle .|
|000028e0| 44 65 76 65 6c 6f 70 69 | 6e 67 20 51 75 69 63 6b |Developi|ng Quick|
|000028f0| 44 72 61 77 20 47 58 20 | 50 72 69 6e 74 69 6e 67 |Draw GX |Printing|
|00002900| 20 45 78 74 65 6e 73 69 | 6f 6e 73 d3 20 6c 61 74 | Extensi|ons. lat|
|00002910| 65 72 20 69 6e 20 74 68 | 69 73 20 69 73 73 75 65 |er in th|is issue|
|00002920| 2e 0d 50 52 4f 47 52 41 | 4d 4d 49 4e 47 20 41 4d |..PROGRA|MMING AM|
|00002930| 45 4e 49 54 49 45 53 0d | 51 75 69 63 6b 44 72 61 |ENITIES.|QuickDra|
|00002940| 77 20 47 58 20 6f 66 66 | 65 72 73 20 79 6f 75 20 |w GX off|ers you |
|00002950| 73 6f 6d 65 20 74 72 75 | 6c 79 20 75 73 65 66 75 |some tru|ly usefu|
|00002960| 6c 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 67 6f |l progra|mming go|
|00002970| 6f 64 69 65 73 3a 20 6c | 69 62 72 61 72 69 65 73 |odies: l|ibraries|
|00002980| 20 6f 66 20 68 61 6e 64 | 79 20 68 69 67 68 2d 6c | of hand|y high-l|
|00002990| 65 76 65 6c 20 72 6f 75 | 74 69 6e 65 73 2c 20 65 |evel rou|tines, e|
|000029a0| 78 74 65 6e 73 69 76 65 | 20 65 72 72 6f 72 2d 68 |xtensive| error-h|
|000029b0| 61 6e 64 6c 69 6e 67 20 | 63 61 70 61 62 69 6c 69 |andling |capabili|
|000029c0| 74 69 65 73 2c 20 61 6e | 64 20 61 20 70 6f 77 65 |ties, an|d a powe|
|000029d0| 72 66 75 6c 20 6e 65 77 | 20 64 65 62 75 67 67 69 |rful new| debuggi|
|000029e0| 6e 67 20 74 6f 6f 6c 20 | 63 61 6c 6c 65 64 20 47 |ng tool |called G|
|000029f0| 72 61 70 68 69 63 73 42 | 75 67 2e 0d 54 48 45 20 |raphicsB|ug..THE |
|00002a00| 51 55 49 43 4b 44 52 41 | 57 20 47 58 20 4c 49 42 |QUICKDRA|W GX LIB|
|00002a10| 52 41 52 49 45 53 0d 41 | 73 20 79 6f 75 20 63 72 |RARIES.A|s you cr|
|00002a20| 75 69 73 65 20 61 72 6f | 75 6e 64 20 74 68 65 20 |uise aro|und the |
|00002a30| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 66 6f 6c |QuickDra|w GX fol|
|00002a40| 64 65 72 20 6f 6e 20 74 | 68 69 73 20 69 73 73 75 |der on t|his issu|
|00002a50| 65 d5 73 20 43 44 2c 20 | 79 6f 75 d5 6c 6c 20 6e |e.s CD, |you.ll n|
|00002a60| 6f 74 69 63 65 20 61 20 | 66 6f 6c 64 65 72 20 6e |otice a |folder n|
|00002a70| 61 6d 65 64 20 4c 69 62 | 72 61 72 69 65 73 2e 20 |amed Lib|raries. |
|00002a80| 4f 70 65 6e 20 69 74 20 | 61 6e 64 20 79 6f 75 d5 |Open it |and you.|
|00002a90| 6c 6c 20 66 69 6e 64 20 | 6c 69 62 72 61 72 69 65 |ll find |librarie|
|00002aa0| 73 20 6f 66 20 63 6f 64 | 65 20 66 6f 72 20 6d 61 |s of cod|e for ma|
|00002ab0| 6e 79 20 63 6f 6d 6d 6f | 6e 20 67 72 61 70 68 69 |ny commo|n graphi|
|00002ac0| 63 73 2c 20 6c 69 6e 65 | 20 6c 61 79 6f 75 74 2c |cs, line| layout,|
|00002ad0| 20 61 6e 64 20 70 72 69 | 6e 74 69 6e 67 20 74 61 | and pri|nting ta|
|00002ae0| 73 6b 73 2e 20 54 68 65 | 73 65 20 70 72 6f 76 69 |sks. The|se provi|
|00002af0| 64 65 20 73 61 6d 70 6c | 65 20 63 6f 64 65 20 74 |de sampl|e code t|
|00002b00| 68 61 74 20 6d 6f 73 74 | 20 61 70 70 6c 69 63 61 |hat most| applica|
|00002b10| 74 69 6f 6e 73 20 77 69 | 6c 6c 20 6e 65 65 64 20 |tions wi|ll need |
|00002b20| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 63 72 65 61 |in order| to crea|
|00002b30| 74 65 20 61 20 51 75 69 | 63 6b 44 72 61 77 20 47 |te a Qui|ckDraw G|
|00002b40| 58 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 2e 20 42 |X applic|ation. B|
|00002b50| 75 74 20 75 6e 6c 69 6b | 65 20 4d 61 63 69 6e 74 |ut unlik|e Macint|
|00002b60| 6f 73 68 20 54 6f 6f 6c | 62 6f 78 20 63 6f 64 65 |osh Tool|box code|
|00002b70| 2c 20 74 68 69 73 20 6c | 69 62 72 61 72 79 20 63 |, this l|ibrary c|
|00002b80| 6f 64 65 20 63 61 6e 20 | 62 65 20 6d 6f 64 69 66 |ode can |be modif|
|00002b90| 69 65 64 20 6f 72 20 65 | 78 74 65 6e 64 65 64 20 |ied or e|xtended |
|00002ba0| 62 79 20 79 6f 75 20 74 | 6f 20 6d 65 65 74 20 79 |by you t|o meet y|
|00002bb0| 6f 75 72 20 6f 77 6e 20 | 70 61 72 74 69 63 75 6c |our own |particul|
|00002bc0| 61 72 20 6e 65 65 64 73 | 2e 20 41 6c 6c 20 74 68 |ar needs|. All th|
|00002bd0| 65 20 6c 69 62 72 61 72 | 79 20 63 6f 64 65 20 69 |e librar|y code i|
|00002be0| 73 20 62 61 73 65 64 20 | 6f 6e 20 63 6f 72 65 20 |s based |on core |
|00002bf0| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 63 61 6c |QuickDra|w GX cal|
|00002c00| 6c 73 2e 20 0d 45 52 52 | 4f 52 20 48 41 4e 44 4c |ls. .ERR|OR HANDL|
|00002c10| 49 4e 47 20 49 4e 20 51 | 55 49 43 4b 44 52 41 57 |ING IN Q|UICKDRAW|
|00002c20| 20 47 58 0d 54 68 65 20 | 67 6f 61 6c 20 6f 66 20 | GX.The |goal of |
|00002c30| 51 75 69 63 6b 44 72 61 | 77 20 47 58 d5 73 20 65 |QuickDra|w GX.s e|
|00002c40| 72 72 6f 72 2d 68 61 6e | 64 6c 69 6e 67 20 63 61 |rror-han|dling ca|
|00002c50| 70 61 62 69 6c 69 74 69 | 65 73 20 69 73 20 74 6f |pabiliti|es is to|
|00002c60| 20 6e 65 76 65 72 20 61 | 6c 6c 6f 77 20 51 75 69 | never a|llow Qui|
|00002c70| 63 6b 44 72 61 77 20 47 | 58 20 74 6f 20 63 72 61 |ckDraw G|X to cra|
|00002c80| 73 68 20 79 6f 75 72 20 | 4d 61 63 69 6e 74 6f 73 |sh your |Macintos|
|00002c90| 68 2c 20 61 6e 64 20 74 | 6f 20 69 6e 66 6f 72 6d |h, and t|o inform|
|00002ca0| 20 79 6f 75 20 61 6e 79 | 74 69 6d 65 20 51 75 69 | you any|time Qui|
|00002cb0| 63 6b 44 72 61 77 20 47 | 58 20 63 61 6e d5 74 20 |ckDraw G|X can.t |
|00002cc0| 63 6f 6d 70 6c 65 74 65 | 20 61 6e 20 6f 70 65 72 |complete| an oper|
|00002cd0| 61 74 69 6f 6e 2e 20 51 | 75 69 63 6b 44 72 61 77 |ation. Q|uickDraw|
|00002ce0| 20 47 58 20 75 73 65 73 | 20 74 77 6f 20 64 69 66 | GX uses| two dif|
|00002cf0| 66 65 72 65 6e 74 20 6d | 6f 64 65 6c 73 20 66 6f |ferent m|odels fo|
|00002d00| 72 20 68 61 6e 64 6c 69 | 6e 67 20 65 72 72 6f 72 |r handli|ng error|
|00002d10| 73 3a 20 6f 6e 65 20 66 | 6f 72 20 67 72 61 70 68 |s: one f|or graph|
|00002d20| 69 63 73 20 61 6e 64 20 | 6c 61 79 6f 75 74 20 65 |ics and |layout e|
|00002d30| 72 72 6f 72 73 20 61 6e | 64 20 61 6e 6f 74 68 65 |rrors an|d anothe|
|00002d40| 72 20 66 6f 72 20 70 72 | 69 6e 74 69 6e 67 20 65 |r for pr|inting e|
|00002d50| 72 72 6f 72 73 2e 20 57 | 65 d5 6c 6c 20 64 69 73 |rrors. W|e.ll dis|
|00002d60| 63 75 73 73 20 67 72 61 | 70 68 69 63 73 20 61 6e |cuss gra|phics an|
|00002d70| 64 20 6c 61 79 6f 75 74 | 20 65 72 72 6f 72 73 20 |d layout| errors |
|00002d80| 68 65 72 65 2e 20 50 72 | 69 6e 74 69 6e 67 20 65 |here. Pr|inting e|
|00002d90| 72 72 6f 72 73 20 61 72 | 65 20 64 65 73 63 72 69 |rrors ar|e descri|
|00002da0| 62 65 64 20 6c 61 74 65 | 72 20 69 6e 20 74 68 69 |bed late|r in thi|
|00002db0| 73 20 61 72 74 69 63 6c | 65 2c 20 75 6e 64 65 72 |s articl|e, under|
|00002dc0| 20 d2 42 61 73 69 63 20 | 50 72 69 6e 74 69 6e 67 | .Basic |Printing|
|00002dd0| 20 69 6e 20 51 75 69 63 | 6b 44 72 61 77 20 47 58 | in Quic|kDraw GX|
|00002de0| 2e d3 20 0d 0d 54 68 65 | 72 65 d5 73 20 62 6f 74 |.. ..The|re.s bot|
|00002df0| 68 20 61 20 64 65 62 75 | 67 67 69 6e 67 20 61 6e |h a debu|gging an|
|00002e00| 64 20 61 20 6e 6f 6e 64 | 65 62 75 67 67 69 6e 67 |d a nond|ebugging|
|00002e10| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|00002e20| 63 6f 6d 62 69 6e 65 64 | 20 67 72 61 70 68 69 63 |combined| graphic|
|00002e30| 73 20 61 6e 64 20 6c 61 | 79 6f 75 74 20 70 6f 72 |s and la|yout por|
|00002e40| 74 69 6f 6e 73 20 6f 66 | 20 51 75 69 63 6b 44 72 |tions of| QuickDr|
|00002e50| 61 77 20 47 58 2e 20 54 | 68 65 20 64 65 62 75 67 |aw GX. T|he debug|
|00002e60| 67 69 6e 67 20 76 65 72 | 73 69 6f 6e 20 70 72 6f |ging ver|sion pro|
|00002e70| 76 69 64 65 73 20 65 78 | 74 65 6e 73 69 76 65 20 |vides ex|tensive |
|00002e80| 65 72 72 6f 72 2d 68 61 | 6e 64 6c 69 6e 67 20 63 |error-ha|ndling c|
|00002e90| 61 70 61 62 69 6c 69 74 | 69 65 73 20 74 6f 20 68 |apabilit|ies to h|
|00002ea0| 65 6c 70 20 79 6f 75 20 | 64 65 62 75 67 20 79 6f |elp you |debug yo|
|00002eb0| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ur appli|cations |
|00002ec0| 75 6e 64 65 72 20 64 65 | 76 65 6c 6f 70 6d 65 6e |under de|velopmen|
|00002ed0| 74 2e 20 54 68 65 20 6e | 6f 6e 64 65 62 75 67 67 |t. The n|ondebugg|
|00002ee0| 69 6e 67 20 76 65 72 73 | 69 6f 6e 20 69 73 20 6c |ing vers|ion is l|
|00002ef0| 65 61 6e 20 61 6e 64 20 | 6d 65 61 6e 3b 20 69 74 |ean and |mean; it|
|00002f00| 20 68 61 73 20 66 65 77 | 65 72 20 65 72 72 6f 72 | has few|er error|
|00002f10| 2d 68 61 6e 64 6c 69 6e | 67 20 63 61 70 61 62 69 |-handlin|g capabi|
|00002f20| 6c 69 74 69 65 73 20 61 | 6e 64 20 69 73 20 66 61 |lities a|nd is fa|
|00002f30| 73 74 65 72 20 74 68 61 | 6e 20 74 68 65 20 64 65 |ster tha|n the de|
|00002f40| 62 75 67 67 69 6e 67 20 | 76 65 72 73 69 6f 6e 2e |bugging |version.|
|00002f50| 20 59 6f 75 20 63 61 6e | 20 64 69 66 66 65 72 65 | You can| differe|
|00002f60| 6e 74 69 61 74 65 20 62 | 65 74 77 65 65 6e 20 74 |ntiate b|etween t|
|00002f70| 68 65 20 74 77 6f 20 76 | 65 72 73 69 6f 6e 73 20 |he two v|ersions |
|00002f80| 62 79 20 74 68 65 69 72 | 20 73 69 7a 65 73 20 61 |by their| sizes a|
|00002f90| 6e 64 20 76 65 72 73 69 | 6f 6e 20 73 74 72 69 6e |nd versi|on strin|
|00002fa0| 67 73 3a 20 74 68 65 20 | 6e 6f 6e 64 65 62 75 67 |gs: the |nondebug|
|00002fb0| 67 69 6e 67 20 76 65 72 | 73 69 6f 6e 20 69 73 20 |ging ver|sion is |
|00002fc0| 73 6d 61 6c 6c 65 72 2c | 20 61 6e 64 20 74 68 65 |smaller,| and the|
|00002fd0| 20 76 65 72 73 69 6f 6e | 20 73 74 72 69 6e 67 20 | version| string |
|00002fe0| 66 6f 72 20 74 68 65 20 | 64 65 62 75 67 67 69 6e |for the |debuggin|
|00002ff0| 67 20 76 65 72 73 69 6f | 6e 20 68 61 73 20 74 68 |g versio|n has th|
|00003000| 65 20 77 6f 72 64 20 d2 | 64 65 62 75 67 d3 20 69 |e word .|debug. i|
|00003010| 6e 20 69 74 2e 20 57 68 | 65 6e 20 79 6f 75 d5 72 |n it. Wh|en you.r|
|00003020| 65 20 64 65 76 65 6c 6f | 70 69 6e 67 20 79 6f 75 |e develo|ping you|
|00003030| 72 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 61 |r QuickD|raw GX a|
|00003040| 70 70 6c 69 63 61 74 69 | 6f 6e 2c 20 79 6f 75 20 |pplicati|on, you |
|00003050| 73 68 6f 75 6c 64 20 62 | 65 20 75 73 69 6e 67 20 |should b|e using |
|00003060| 74 68 65 20 64 65 62 75 | 67 67 69 6e 67 20 76 65 |the debu|gging ve|
|00003070| 72 73 69 6f 6e 2e 0d 49 | 6e 20 74 68 65 20 64 65 |rsion..I|n the de|
|00003080| 62 75 67 67 69 6e 67 20 | 76 65 72 73 69 6f 6e 2c |bugging |version,|
|00003090| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo|
|000030a0| 75 74 20 69 6e 74 65 72 | 6e 61 6c 20 64 61 74 61 |ut inter|nal data|
|000030b0| 20 61 6e 64 20 64 72 61 | 77 69 6e 67 20 70 72 6f | and dra|wing pro|
|000030c0| 62 6c 65 6d 73 20 63 6f | 6d 65 73 20 69 6e 20 74 |blems co|mes in t|
|000030d0| 68 72 65 65 20 66 6c 61 | 76 6f 72 73 3a 20 6e 6f |hree fla|vors: no|
|000030e0| 74 69 63 65 73 2c 20 77 | 61 72 6e 69 6e 67 73 2c |tices, w|arnings,|
|000030f0| 20 61 6e 64 20 65 72 72 | 6f 72 73 2e 20 4f 6e 6c | and err|ors. Onl|
|00003100| 79 20 61 20 66 65 77 20 | 73 65 6c 65 63 74 65 64 |y a few |selected|
|00003110| 20 65 72 72 6f 72 73 20 | 61 6e 64 20 77 61 72 6e | errors |and warn|
|00003120| 69 6e 67 73 20 61 72 65 | 20 69 73 73 75 65 64 20 |ings are| issued |
|00003130| 69 6e 20 74 68 65 20 6e | 6f 6e 64 65 62 75 67 67 |in the n|ondebugg|
|00003140| 69 6e 67 20 76 65 72 73 | 69 6f 6e 2e 0d 4e 6f 74 |ing vers|ion..Not|
|00003150| 69 63 65 73 2e 41 20 6e | 6f 74 69 63 65 20 69 6e |ices.A n|otice in|
|00003160| 66 6f 72 6d 73 20 79 6f | 75 20 74 68 61 74 20 74 |forms yo|u that t|
|00003170| 68 65 20 6f 70 65 72 61 | 74 69 6f 6e 20 79 6f 75 |he opera|tion you|
|00003180| d5 72 65 20 70 65 72 66 | 6f 72 6d 69 6e 67 20 69 |.re perf|orming i|
|00003190| 73 6e d5 74 20 72 65 61 | 6c 6c 79 20 6e 65 65 64 |sn.t rea|lly need|
|000031a0| 65 64 2e 20 4e 6f 74 69 | 63 65 73 20 61 72 65 6e |ed. Noti|ces aren|
|000031b0| d5 74 20 6e 65 63 65 73 | 73 61 72 69 6c 79 20 62 |.t neces|sarily b|
|000031c0| 61 64 20 74 68 69 6e 67 | 73 3b 20 74 68 65 79 d5 |ad thing|s; they.|
|000031d0| 72 65 20 6a 75 73 74 20 | 69 6e 66 6f 72 6d 61 74 |re just |informat|
|000031e0| 69 6f 6e 20 74 6f 20 68 | 65 6c 70 20 79 6f 75 20 |ion to h|elp you |
|000031f0| 69 6d 70 72 6f 76 65 20 | 74 68 65 20 65 66 66 69 |improve |the effi|
|00003200| 63 69 65 6e 63 79 20 6f | 66 20 79 6f 75 72 20 61 |ciency o|f your a|
|00003210| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 20 46 6f 72 20 |pplicati|on. For |
|00003220| 65 78 61 6d 70 6c 65 2c | 20 69 66 20 79 6f 75 d5 |example,| if you.|
|00003230| 76 65 20 61 6c 72 65 61 | 64 79 20 63 6f 6c 6f 72 |ve alrea|dy color|
|00003240| 65 64 20 61 20 73 68 61 | 70 65 20 61 6e 64 20 79 |ed a sha|pe and y|
|00003250| 6f 75 20 74 72 79 20 74 | 6f 20 63 6f 6c 6f 72 20 |ou try t|o color |
|00003260| 69 74 20 61 67 61 69 6e | 2c 20 79 6f 75 d5 6c 6c |it again|, you.ll|
|00003270| 20 72 65 63 65 69 76 65 | 20 74 68 65 20 66 6f 6c | receive| the fol|
|00003280| 6c 6f 77 69 6e 67 20 6e | 6f 74 69 63 65 20 69 6e |lowing n|otice in|
|00003290| 20 74 68 65 20 69 6e 73 | 74 61 6c 6c 65 64 20 64 | the ins|talled d|
|000032a0| 65 62 75 67 67 65 72 3a | 0d 47 52 41 50 48 49 43 |ebugger:|.GRAPHIC|
|000032b0| 53 20 4e 4f 54 49 43 45 | 3a 20 63 6f 6c 6f 72 20 |S NOTICE|: color |
|000032c0| 61 6c 72 65 61 64 79 20 | 73 65 74 0d 57 61 72 6e |already |set.Warn|
|000032d0| 69 6e 67 73 2e 20 41 20 | 77 61 72 6e 69 6e 67 20 |ings. A |warning |
|000032e0| 69 6e 66 6f 72 6d 73 20 | 79 6f 75 20 74 68 61 74 |informs |you that|
|000032f0| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 64 6f | QuickDr|aw GX do|
|00003300| 65 73 6e d5 74 20 61 6c | 6c 6f 77 20 74 68 65 20 |esn.t al|low the |
|00003310| 6f 70 65 72 61 74 69 6f | 6e 20 79 6f 75 d5 72 65 |operatio|n you.re|
|00003320| 20 74 72 79 69 6e 67 20 | 74 6f 20 70 65 72 66 6f | trying |to perfo|
|00003330| 72 6d 2e 20 57 68 69 6c | 65 20 74 68 69 73 20 6d |rm. Whil|e this m|
|00003340| 69 67 68 74 20 6e 6f 74 | 20 63 61 75 73 65 20 61 |ight not| cause a|
|00003350| 6e 79 20 70 72 6f 62 6c | 65 6d 73 2c 20 79 6f 75 |ny probl|ems, you|
|00003360| 20 61 6c 73 6f 20 6d 69 | 67 68 74 20 6e 6f 74 20 | also mi|ght not |
|00003370| 67 65 74 20 74 68 65 20 | 72 65 73 75 6c 74 20 79 |get the |result y|
|00003380| 6f 75 20 65 78 70 65 63 | 74 65 64 2e 20 46 6f 72 |ou expec|ted. For|
|00003390| 20 65 78 61 6d 70 6c 65 | 2c 20 69 66 20 79 6f 75 | example|, if you|
|000033a0| 20 74 72 79 20 74 6f 20 | 75 73 65 20 61 20 66 6f | try to |use a fo|
|000033b0| 6e 74 20 74 68 61 74 20 | 69 73 6e d5 74 20 61 76 |nt that |isn.t av|
|000033c0| 61 69 6c 61 62 6c 65 2c | 20 51 75 69 63 6b 44 72 |ailable,| QuickDr|
|000033d0| 61 77 20 47 58 20 77 69 | 6c 6c 20 73 75 62 73 74 |aw GX wi|ll subst|
|000033e0| 69 74 75 74 65 20 74 68 | 65 20 64 65 66 61 75 6c |itute th|e defaul|
|000033f0| 74 20 66 6f 6e 74 20 61 | 6e 64 20 67 69 76 65 20 |t font a|nd give |
|00003400| 79 6f 75 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |you the |followin|
|00003410| 67 20 77 61 72 6e 69 6e | 67 3a 0d 47 52 41 50 48 |g warnin|g:.GRAPH|
|00003420| 49 43 53 20 57 41 52 4e | 49 4e 47 3a 20 66 6f 6e |ICS WARN|ING: fon|
|00003430| 74 20 73 75 62 73 74 69 | 74 75 74 69 6f 6e 20 74 |t substi|tution t|
|00003440| 6f 6f 6b 20 70 6c 61 63 | 65 0d 45 72 72 6f 72 73 |ook plac|e.Errors|
|00003450| 2e 20 41 6e 20 65 72 72 | 6f 72 20 6d 65 61 6e 73 |. An err|or means|
|00003460| 20 74 68 61 74 20 51 75 | 69 63 6b 44 72 61 77 20 | that Qu|ickDraw |
|00003470| 47 58 20 63 6f 75 6c 64 | 6e d5 74 20 64 72 61 77 |GX could|n.t draw|
|00003480| 20 79 6f 75 72 20 73 68 | 61 70 65 20 6f 72 20 63 | your sh|ape or c|
|00003490| 6f 6d 70 6c 65 74 65 20 | 61 20 72 6f 75 74 69 6e |omplete |a routin|
|000034a0| 65 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |e. For e|xample, |
|000034b0| 69 66 20 79 6f 75 20 74 | 72 79 20 74 6f 20 64 72 |if you t|ry to dr|
|000034c0| 61 77 20 61 6e 20 65 6d | 70 74 79 20 73 68 61 70 |aw an em|pty shap|
|000034d0| 65 20 6f 72 20 6f 6e 65 | 20 74 68 61 74 20 68 61 |e or one| that ha|
|000034e0| 73 6e d5 74 20 62 65 65 | 6e 20 64 65 66 69 6e 65 |sn.t bee|n define|
|000034f0| 64 2c 20 79 6f 75 d5 6c | 6c 20 72 65 63 65 69 76 |d, you.l|l receiv|
|00003500| 65 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |e the fo|llowing |
|00003510| 65 72 72 6f 72 3a 0d 47 | 52 41 50 48 49 43 53 20 |error:.G|RAPHICS |
|00003520| 45 52 52 4f 52 3a 20 73 | 68 61 70 65 20 69 73 20 |ERROR: s|hape is |
|00003530| 6e 69 6c 0d 43 68 65 63 | 6b 69 6e 67 20 66 6f 72 |nil.Chec|king for|
|00003540| 20 64 72 61 77 69 6e 67 | 20 65 72 72 6f 72 73 2e | drawing| errors.|
|00003550| 4f 6e 63 65 20 79 6f 75 | d5 76 65 20 66 69 6e 69 |Once you|.ve fini|
|00003560| 73 68 65 64 20 64 65 76 | 65 6c 6f 70 69 6e 67 20 |shed dev|eloping |
|00003570| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00003580| 2c 20 79 6f 75 d5 6c 6c | 20 73 74 69 6c 6c 20 77 |, you.ll| still w|
|00003590| 61 6e 74 20 74 6f 20 62 | 65 20 61 62 6c 65 20 74 |ant to b|e able t|
|000035a0| 6f 20 63 68 65 63 6b 20 | 66 6f 72 20 64 72 61 77 |o check |for draw|
|000035b0| 69 6e 67 20 65 72 72 6f | 72 73 2e 20 54 68 65 20 |ing erro|rs. The |
|000035c0| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 72 6f 75 |QuickDra|w GX rou|
|000035d0| 74 69 6e 65 20 47 58 47 | 65 74 53 68 61 70 65 44 |tine GXG|etShapeD|
|000035e0| 72 61 77 45 72 72 6f 72 | 20 6c 65 74 73 20 79 6f |rawError| lets yo|
|000035f0| 75 20 64 6f 20 74 68 69 | 73 20 61 6e 64 2c 20 69 |u do thi|s and, i|
|00003600| 6e 20 63 61 73 65 20 6f | 66 20 61 6e 20 65 72 72 |n case o|f an err|
|00003610| 6f 72 2c 20 66 61 69 6c | 20 69 6e 20 61 20 67 72 |or, fail| in a gr|
|00003620| 61 63 65 66 75 6c 20 6d | 61 6e 6e 65 72 2e 20 46 |aceful m|anner. F|
|00003630| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 74 68 69 73 |or examp|le, this|
|00003640| 20 63 6f 64 65 20 66 72 | 61 67 6d 65 6e 74 20 63 | code fr|agment c|
|00003650| 68 65 63 6b 73 20 74 68 | 61 74 20 64 72 61 77 69 |hecks th|at drawi|
|00003660| 6e 67 20 77 61 73 20 73 | 75 63 63 65 73 73 66 75 |ng was s|uccessfu|
|00003670| 6c 20 61 6e 64 20 66 61 | 69 6c 73 20 69 66 20 69 |l and fa|ils if i|
|00003680| 74 20 77 61 73 6e d5 74 | 3a 0d 47 58 44 72 61 77 |t wasn.t|:.GXDraw|
|00003690| 53 68 61 70 65 28 67 74 | 68 65 50 61 67 65 29 3b |Shape(gt|hePage);|
|000036a0| 09 0d 69 66 20 28 64 72 | 61 77 69 6e 67 45 72 72 |..if (dr|awingErr|
|000036b0| 6f 72 20 3d 20 47 58 47 | 65 74 53 68 61 70 65 44 |or = GXG|etShapeD|
|000036c0| 72 61 77 45 72 72 6f 72 | 28 67 74 68 65 50 61 67 |rawError|(gthePag|
|000036d0| 65 29 20 21 3d 20 6e 6f | 44 72 61 77 45 72 72 6f |e) != no|DrawErro|
|000036e0| 72 29 0d 09 2f 2f 20 59 | 6f 75 72 20 65 72 72 6f |r)..// Y|our erro|
|000036f0| 72 2d 68 61 6e 64 6c 69 | 6e 67 20 63 6f 64 65 20 |r-handli|ng code |
|00003700| 68 65 72 65 21 0d 0d 49 | 67 6e 6f 72 69 6e 67 20 |here!..I|gnoring |
|00003710| 6e 6f 74 69 63 65 73 20 | 61 6e 64 20 77 61 72 6e |notices |and warn|
|00003720| 69 6e 67 73 2e 20 53 6f | 6d 65 74 69 6d 65 73 20 |ings. So|metimes |
|00003730| 79 6f 75 20 6d 69 67 68 | 74 20 77 61 6e 74 20 74 |you migh|t want t|
|00003740| 6f 20 69 67 6e 6f 72 65 | 20 61 20 70 61 72 74 69 |o ignore| a parti|
|00003750| 63 75 6c 61 72 20 6e 6f | 74 69 63 65 20 6f 72 20 |cular no|tice or |
|00003760| 77 61 72 6e 69 6e 67 20 | 62 65 63 61 75 73 65 20 |warning |because |
|00003770| 79 6f 75 20 6b 6e 6f 77 | 20 77 68 61 74 20 79 6f |you know| what yo|
|00003780| 75 d5 72 65 20 64 6f 69 | 6e 67 2e 20 55 73 65 20 |u.re doi|ng. Use |
|00003790| 74 68 65 73 65 20 72 6f | 75 74 69 6e 65 73 20 74 |these ro|utines t|
|000037a0| 6f 20 69 67 6e 6f 72 65 | 20 61 20 6e 6f 74 69 63 |o ignore| a notic|
|000037b0| 65 20 6f 72 20 77 61 72 | 6e 69 6e 67 3a 0d 76 6f |e or war|ning:.vo|
|000037c0| 69 64 20 47 58 49 67 6e | 6f 72 65 47 72 61 70 68 |id GXIgn|oreGraph|
|000037d0| 69 63 73 4e 6f 74 69 63 | 65 28 67 78 47 72 61 70 |icsNotic|e(gxGrap|
|000037e0| 68 69 63 73 4e 6f 74 69 | 63 65 20 6e 6f 74 69 63 |hicsNoti|ce notic|
|000037f0| 65 29 3b 0d 76 6f 69 64 | 20 47 58 49 67 6e 6f 72 |e);.void| GXIgnor|
|00003800| 65 47 72 61 70 68 69 63 | 73 57 61 72 6e 69 6e 67 |eGraphic|sWarning|
|00003810| 28 67 78 47 72 61 70 68 | 69 63 73 57 61 72 6e 69 |(gxGraph|icsWarni|
|00003820| 6e 67 20 77 61 72 6e 69 | 6e 67 29 3b 0d 46 6f 72 |ng warni|ng);.For|
|00003830| 20 65 78 61 6d 70 6c 65 | 2c 20 69 66 20 79 6f 75 | example|, if you|
|00003840| 20 77 61 6e 74 65 64 20 | 74 6f 20 69 67 6e 6f 72 | wanted |to ignor|
|00003850| 65 20 61 20 6e 6f 74 69 | 63 65 20 61 62 6f 75 74 |e a noti|ce about|
|00003860| 20 72 65 63 6f 6c 6f 72 | 69 6e 67 20 61 20 73 68 | recolor|ing a sh|
|00003870| 61 70 65 2c 20 79 6f 75 | 20 77 6f 75 6c 64 20 6d |ape, you| would m|
|00003880| 61 6b 65 20 74 68 69 73 | 20 63 61 6c 6c 3a 0d 76 |ake this| call:.v|
|00003890| 6f 69 64 20 47 58 49 67 | 6e 6f 72 65 47 72 61 70 |oid GXIg|noreGrap|
|000038a0| 68 69 63 73 4e 6f 74 69 | 63 65 28 63 6f 6c 6f 72 |hicsNoti|ce(color|
|000038b0| 5f 61 6c 72 65 61 64 79 | 5f 73 65 74 29 3b 0d 57 |_already|_set);.W|
|000038c0| 68 65 6e 20 79 6f 75 20 | 63 61 6c 6c 20 47 58 49 |hen you |call GXI|
|000038d0| 67 6e 6f 72 65 47 72 61 | 70 68 69 63 73 4e 6f 74 |gnoreGra|phicsNot|
|000038e0| 69 63 65 20 6f 72 20 47 | 58 49 67 6e 6f 72 65 47 |ice or G|XIgnoreG|
|000038f0| 72 61 70 68 69 63 73 57 | 61 72 6e 69 6e 67 2c 20 |raphicsW|arning, |
|00003900| 74 68 65 20 6e 6f 74 69 | 63 65 20 6f 72 20 77 61 |the noti|ce or wa|
|00003910| 72 6e 69 6e 67 20 69 73 | 20 61 64 64 65 64 20 74 |rning is| added t|
|00003920| 6f 20 74 68 65 20 74 6f | 70 20 6f 66 20 74 68 65 |o the to|p of the|
|00003930| 20 6e 6f 74 69 63 65 20 | 73 74 61 63 6b 20 6f 72 | notice |stack or|
|00003940| 20 77 61 72 6e 69 6e 67 | 20 73 74 61 63 6b 2c 20 | warning| stack, |
|00003950| 72 65 73 70 65 63 74 69 | 76 65 6c 79 2e 20 28 49 |respecti|vely. (I|
|00003960| 74 d5 73 20 61 64 64 65 | 64 20 74 6f 20 74 68 65 |t.s adde|d to the|
|00003970| 20 73 74 61 63 6b 20 65 | 76 65 6e 20 77 68 65 6e | stack e|ven when|
|00003980| 20 6e 6f 74 20 69 67 6e | 6f 72 65 64 2c 20 62 75 | not ign|ored, bu|
|00003990| 74 20 74 68 65 20 73 74 | 61 63 6b 20 68 61 6e 64 |t the st|ack hand|
|000039a0| 6c 69 6e 67 20 69 73 20 | 74 61 6b 65 6e 20 63 61 |ling is |taken ca|
|000039b0| 72 65 20 6f 66 20 62 65 | 68 69 6e 64 20 74 68 65 |re of be|hind the|
|000039c0| 20 73 63 65 6e 65 73 20 | 66 6f 72 20 79 6f 75 20 | scenes |for you |
|000039d0| 69 6e 20 74 68 61 74 20 | 63 61 73 65 2e 29 20 53 |in that |case.) S|
|000039e0| 6f 20 79 6f 75 20 6d 75 | 73 74 20 62 61 6c 61 6e |o you mu|st balan|
|000039f0| 63 65 20 74 68 69 73 20 | 77 69 74 68 20 61 20 63 |ce this |with a c|
|00003a00| 61 6c 6c 20 74 6f 20 6f | 6e 65 20 6f 66 20 74 68 |all to o|ne of th|
|00003a10| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 72 6f 75 74 |e follow|ing rout|
|00003a20| 69 6e 65 73 20 74 6f 20 | 65 6e 73 75 72 65 20 74 |ines to |ensure t|
|00003a30| 68 61 74 20 79 6f 75 20 | 64 6f 6e d5 74 20 6f 76 |hat you |don.t ov|
|00003a40| 65 72 66 6c 6f 77 20 74 | 68 65 20 6e 6f 74 69 63 |erflow t|he notic|
|00003a50| 65 20 6f 72 20 77 61 72 | 6e 69 6e 67 20 73 74 61 |e or war|ning sta|
|00003a60| 63 6b 3a 0d 76 6f 69 64 | 20 47 58 50 6f 70 47 72 |ck:.void| GXPopGr|
|00003a70| 61 70 68 69 63 73 4e 6f | 74 69 63 65 28 76 6f 69 |aphicsNo|tice(voi|
|00003a80| 64 29 3b 0d 76 6f 69 64 | 20 47 58 50 6f 70 47 72 |d);.void| GXPopGr|
|00003a90| 61 70 68 69 63 73 57 61 | 72 6e 69 6e 67 28 76 6f |aphicsWa|rning(vo|
|00003aa0| 69 64 29 3b 0d 49 6e 20 | 74 68 65 20 6e 6f 6e 64 |id);.In |the nond|
|00003ab0| 65 62 75 67 67 69 6e 67 | 20 76 65 72 73 69 6f 6e |ebugging| version|
|00003ac0| 2c 20 77 68 65 72 65 20 | 6e 6f 74 69 63 65 73 20 |, where |notices |
|00003ad0| 61 6e 64 20 6d 6f 73 74 | 20 77 61 72 6e 69 6e 67 |and most| warning|
|00003ae0| 73 20 61 72 65 6e d5 74 | 20 61 76 61 69 6c 61 62 |s aren.t| availab|
|00003af0| 6c 65 2c 20 63 61 6c 6c | 69 6e 67 20 74 68 65 20 |le, call|ing the |
|00003b00| 47 58 49 67 6e 6f 72 65 | 47 72 61 70 68 69 63 73 |GXIgnore|Graphics|
|00003b10| 58 58 58 20 61 6e 64 20 | 47 58 50 6f 70 47 72 61 |XXX and |GXPopGra|
|00003b20| 70 68 69 63 73 58 58 58 | 20 72 6f 75 74 69 6e 65 |phicsXXX| routine|
|00003b30| 73 20 73 74 69 6c 6c 20 | 72 65 73 75 6c 74 73 20 |s still |results |
|00003b40| 69 6e 20 61 20 74 72 61 | 70 20 63 61 6c 6c 20 61 |in a tra|p call a|
|00003b50| 6e 64 20 64 69 73 70 61 | 74 63 68 20 65 76 65 6e |nd dispa|tch even|
|00003b60| 20 74 68 6f 75 67 68 20 | 74 68 65 79 20 6a 75 73 | though |they jus|
|00003b70| 74 20 72 65 74 75 72 6e | 20 69 6d 6d 65 64 69 61 |t return| immedia|
|00003b80| 74 65 6c 79 2e 20 54 68 | 65 72 65 20 6d 61 79 20 |tely. Th|ere may |
|00003b90| 62 65 20 61 20 73 6d 61 | 6c 6c 20 70 65 72 66 6f |be a sma|ll perfo|
|00003ba0| 72 6d 61 6e 63 65 20 70 | 65 6e 61 6c 74 79 20 66 |rmance p|enalty f|
|00003bb0| 6f 72 20 74 68 69 73 2c | 20 73 6f 20 79 6f 75 20 |or this,| so you |
|00003bc0| 73 68 6f 75 6c 64 20 72 | 65 6d 65 6d 62 65 72 20 |should r|emember |
|00003bd0| 74 6f 20 72 65 6d 6f 76 | 65 20 74 68 65 20 75 6e |to remov|e the un|
|00003be0| 6e 65 63 65 73 73 61 72 | 79 20 63 61 6c 6c 73 20 |necessar|y calls |
|00003bf0| 66 6f 72 20 61 20 73 68 | 69 70 70 69 6e 67 20 61 |for a sh|ipping a|
|00003c00| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 47 72 61 62 |pplicati|on..Grab|
|00003c10| 62 69 6e 67 20 65 72 72 | 6f 72 73 2c 20 6e 6f 74 |bing err|ors, not|
|00003c20| 69 63 65 73 2c 20 61 6e | 64 20 77 61 72 6e 69 6e |ices, an|d warnin|
|00003c30| 67 73 2e 20 49 6e 20 74 | 68 65 20 6e 6f 6e 64 65 |gs. In t|he nonde|
|00003c40| 62 75 67 67 69 6e 67 20 | 76 65 72 73 69 6f 6e 2c |bugging |version,|
|00003c50| 20 79 6f 75 20 72 65 63 | 65 69 76 65 20 6f 6e 6c | you rec|eive onl|
|00003c60| 79 20 61 20 66 65 77 20 | 73 65 6c 65 63 74 65 64 |y a few |selected|
|00003c70| 20 65 72 72 6f 72 73 20 | 61 6e 64 20 77 61 72 6e | errors |and warn|
|00003c80| 69 6e 67 73 2e 20 49 66 | 20 79 6f 75 d5 76 65 20 |ings. If| you.ve |
|00003c90| 74 65 73 74 65 64 20 79 | 6f 75 72 20 61 70 70 6c |tested y|our appl|
|00003ca0| 69 63 61 74 69 6f 6e 20 | 74 68 6f 72 6f 75 67 68 |ication |thorough|
|00003cb0| 6c 79 2c 20 74 68 65 73 | 65 20 73 68 6f 75 6c 64 |ly, thes|e should|
|00003cc0| 20 62 65 20 74 68 65 20 | 6f 6e 6c 79 20 65 72 72 | be the |only err|
|00003cd0| 6f 72 73 20 79 6f 75 20 | 73 65 65 3a 0d 6f 75 74 |ors you |see:.out|
|00003ce0| 5f 6f 66 5f 6d 65 6d 6f | 72 79 0d 6e 6f 74 5f 65 |_of_memo|ry.not_e|
|00003cf0| 6e 6f 75 67 68 5f 6d 65 | 6d 6f 72 79 5f 66 6f 72 |nough_me|mory_for|
|00003d00| 5f 67 72 61 70 68 69 63 | 73 5f 63 6c 69 65 6e 74 |_graphic|s_client|
|00003d10| 5f 68 65 61 70 0d 67 72 | 61 70 68 69 63 73 5f 63 |_heap.gr|aphics_c|
|00003d20| 6c 69 65 6e 74 5f 6d 65 | 6d 6f 72 79 5f 74 6f 6f |lient_me|mory_too|
|00003d30| 5f 73 6d 61 6c 6c 0d 63 | 6f 75 6c 64 5f 6e 6f 74 |_small.c|ould_not|
|00003d40| 5f 63 72 65 61 74 65 5f | 62 61 63 6b 69 6e 67 5f |_create_|backing_|
|00003d50| 73 74 6f 72 65 0d 54 68 | 65 73 65 20 73 68 6f 75 |store.Th|ese shou|
|00003d60| 6c 64 20 62 65 20 74 68 | 65 20 6f 6e 6c 79 20 77 |ld be th|e only w|
|00003d70| 61 72 6e 69 6e 67 73 20 | 79 6f 75 20 73 65 65 3a |arnings |you see:|
|00003d80| 0d 3c 3c 66 6f 6e 74 20 | 6f 72 20 63 68 61 72 61 |.<<font |or chara|
|00003d90| 63 74 65 72 3e 3e 5f 73 | 75 62 73 74 69 74 75 74 |cter>>_s|ubstitut|
|00003da0| 69 6f 6e 5f 6f 63 63 75 | 72 72 65 64 0d 3c 3c 6d |ion_occu|rred.<<m|
|00003db0| 61 70 2c 20 6d 6f 76 65 | 2c 20 73 63 61 6c 65 2c |ap, move|, scale,|
|00003dc0| 20 72 6f 74 61 74 65 2c | 20 6f 72 20 73 6b 65 77 | rotate,| or skew|
|00003dd0| 3e 3e 5f 73 68 61 70 65 | 5f 6f 75 74 5f 6f 66 5f |>>_shape|_out_of_|
|00003de0| 72 61 6e 67 65 0d 3c 3c | 6d 61 70 2c 20 6d 6f 76 |range.<<|map, mov|
|00003df0| 65 2c 20 73 63 61 6c 65 | 2c 20 72 6f 74 61 74 65 |e, scale|, rotate|
|00003e00| 2c 20 6f 72 20 73 6b 65 | 77 3e 3e 5f 74 72 61 6e |, or ske|w>>_tran|
|00003e10| 73 66 6f 72 6d 5f 6f 75 | 74 5f 6f 66 5f 72 61 6e |sform_ou|t_of_ran|
|00003e20| 67 65 0d 59 6f 75 20 70 | 72 6f 62 61 62 6c 79 20 |ge.You p|robably |
|00003e30| 64 6f 6e d5 74 20 77 61 | 6e 74 20 79 6f 75 72 20 |don.t wa|nt your |
|00003e40| 75 73 65 72 20 74 6f 20 | 65 6e 64 20 75 70 20 69 |user to |end up i|
|00003e50| 6e 20 61 20 64 65 62 75 | 67 67 65 72 20 6f 72 20 |n a debu|gger or |
|00003e60| 77 69 74 68 20 61 20 73 | 79 73 74 65 6d 20 62 6f |with a s|ystem bo|
|00003e70| 6d 62 2c 20 73 6f 20 79 | 6f 75 20 73 68 6f 75 6c |mb, so y|ou shoul|
|00003e80| 64 20 63 61 74 63 68 20 | 65 72 72 6f 72 73 20 62 |d catch |errors b|
|00003e90| 79 20 63 61 6c 6c 69 6e | 67 20 74 68 65 20 47 58 |y callin|g the GX|
|00003ea0| 47 65 74 47 72 61 70 68 | 69 63 73 45 72 72 6f 72 |GetGraph|icsError|
|00003eb0| 20 72 6f 75 74 69 6e 65 | 3b 20 79 6f 75 20 63 61 | routine|; you ca|
|00003ec0| 6e 20 74 68 65 6e 20 68 | 61 6e 64 6c 65 20 74 68 |n then h|andle th|
|00003ed0| 65 20 65 72 72 6f 72 20 | 61 70 70 72 6f 70 72 69 |e error |appropri|
|00003ee0| 61 74 65 6c 79 20 77 69 | 74 68 69 6e 20 79 6f 75 |ately wi|thin you|
|00003ef0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 6f 72 |r applic|ation or|
|00003f00| 20 70 72 65 73 65 6e 74 | 20 69 74 20 74 6f 20 74 | present| it to t|
|00003f10| 68 65 20 75 73 65 72 2e | 20 0d 0d 67 78 47 72 61 |he user.| ..gxGra|
|00003f20| 70 68 69 63 73 45 72 72 | 6f 72 20 47 58 47 65 74 |phicsErr|or GXGet|
|00003f30| 47 72 61 70 68 69 63 73 | 45 72 72 6f 72 28 67 78 |Graphics|Error(gx|
|00003f40| 47 72 61 70 68 69 63 73 | 45 72 72 6f 72 20 2a 73 |Graphics|Error *s|
|00003f50| 74 69 63 6b 79 45 72 72 | 6f 72 29 3b 20 0d 59 6f |tickyErr|or); .Yo|
|00003f60| 75 20 63 61 6e 20 61 6c | 73 6f 20 67 72 61 62 20 |u can al|so grab |
|00003f70| 6e 6f 74 69 63 65 73 20 | 28 69 6e 20 74 68 65 20 |notices |(in the |
|00003f80| 64 65 62 75 67 67 69 6e | 67 20 76 65 72 73 69 6f |debuggin|g versio|
|00003f90| 6e 20 6f 6e 6c 79 29 20 | 61 6e 64 20 77 61 72 6e |n only) |and warn|
|00003fa0| 69 6e 67 73 20 77 69 74 | 68 20 74 68 65 73 65 20 |ings wit|h these |
|00003fb0| 63 61 6c 6c 73 3a 0d 67 | 78 47 72 61 70 68 69 63 |calls:.g|xGraphic|
|00003fc0| 73 4e 6f 74 69 63 65 20 | 47 58 47 65 74 47 72 61 |sNotice |GXGetGra|
|00003fd0| 70 68 69 63 73 4e 6f 74 | 69 63 65 28 67 78 47 72 |phicsNot|ice(gxGr|
|00003fe0| 61 70 68 69 63 73 4e 6f | 74 69 63 65 20 2a 73 74 |aphicsNo|tice *st|
|00003ff0| 69 63 6b 79 4e 6f 74 69 | 63 65 29 3b 0d 67 78 47 |ickyNoti|ce);.gxG|
|00004000| 72 61 70 68 69 63 73 57 | 61 72 6e 69 6e 67 20 47 |raphicsW|arning G|
|00004010| 58 47 65 74 47 72 61 70 | 68 69 63 73 57 61 72 6e |XGetGrap|hicsWarn|
|00004020| 69 6e 67 28 67 78 47 72 | 61 70 68 69 63 73 57 61 |ing(gxGr|aphicsWa|
|00004030| 72 6e 69 6e 67 20 2a 73 | 74 69 63 6b 79 57 61 72 |rning *s|tickyWar|
|00004040| 6e 69 6e 67 29 3b 0d 47 | 52 41 50 48 49 43 53 42 |ning);.G|RAPHICSB|
|00004050| 55 47 3a 20 41 20 50 4f | 57 45 52 46 55 4c 20 4e |UG: A PO|WERFUL N|
|00004060| 45 57 20 44 45 42 55 47 | 47 49 4e 47 20 54 4f 4f |EW DEBUG|GING TOO|
|00004070| 4c 0d 54 68 65 20 6f 6e | 6c 79 20 77 61 79 20 74 |L.The on|ly way t|
|00004080| 6f 20 63 72 65 61 74 65 | 20 61 6e 64 20 6d 6f 64 |o create| and mod|
|00004090| 69 66 79 20 73 68 61 70 | 65 73 20 69 6e 20 51 75 |ify shap|es in Qu|
|000040a0| 69 63 6b 44 72 61 77 20 | 47 58 20 69 73 20 74 68 |ickDraw |GX is th|
|000040b0| 72 6f 75 67 68 20 74 68 | 65 20 70 75 62 6c 69 63 |rough th|e public|
|000040c0| 20 41 50 49 3b 20 79 6f | 75 20 63 61 6e d5 74 20 | API; yo|u can.t |
|000040d0| 6f 70 65 72 61 74 65 20 | 6f 6e 20 61 6e 79 20 64 |operate |on any d|
|000040e0| 61 74 61 20 64 69 72 65 | 63 74 6c 79 2e 20 54 68 |ata dire|ctly. Th|
|000040f0| 69 73 20 69 73 20 61 20 | 76 65 72 79 20 67 6f 6f |is is a |very goo|
|00004100| 64 20 74 68 69 6e 67 20 | 62 65 63 61 75 73 65 20 |d thing |because |
|00004110| 69 74 20 6c 65 74 73 20 | 41 70 70 6c 65 20 65 78 |it lets |Apple ex|
|00004120| 70 61 6e 64 20 74 68 65 | 20 73 79 73 74 65 6d 20 |pand the| system |
|00004130| 69 6e 20 74 68 65 20 66 | 75 74 75 72 65 20 77 69 |in the f|uture wi|
|00004140| 74 68 20 6d 69 6e 69 6d | 61 6c 20 63 6f 6d 70 61 |th minim|al compa|
|00004150| 74 69 62 69 6c 69 74 79 | 20 72 69 73 6b 2e 20 42 |tibility| risk. B|
|00004160| 75 74 20 69 66 20 79 6f | 75 20 63 61 6e d5 74 20 |ut if yo|u can.t |
|00004170| 73 65 65 20 74 68 65 20 | 64 61 74 61 20 79 6f 75 |see the |data you|
|00004180| d5 72 65 20 77 6f 72 6b | 69 6e 67 20 77 69 74 68 |.re work|ing with|
|00004190| 2c 20 77 6f 6e d5 74 20 | 64 65 62 75 67 67 69 6e |, won.t |debuggin|
|000041a0| 67 20 62 65 20 61 20 6e | 69 67 68 74 6d 61 72 65 |g be a n|ightmare|
|000041b0| 3f 20 48 65 72 65 d5 73 | 20 77 68 65 72 65 20 47 |? Here.s| where G|
|000041c0| 72 61 70 68 69 63 73 42 | 75 67 20 63 6f 6d 65 73 |raphicsB|ug comes|
|000041d0| 20 74 6f 20 74 68 65 20 | 72 65 73 63 75 65 2e 20 | to the |rescue. |
|000041e0| 47 72 61 70 68 69 63 73 | 42 75 67 20 69 73 20 61 |Graphics|Bug is a|
|000041f0| 6e 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 68 |n applic|ation th|
|00004200| 61 74 20 65 6e 61 62 6c | 65 73 20 79 6f 75 20 74 |at enabl|es you t|
|00004210| 6f 20 69 6e 73 70 65 63 | 74 20 74 68 65 20 63 6f |o inspec|t the co|
|00004220| 6e 74 65 6e 74 73 20 6f | 66 20 61 6e 79 20 51 75 |ntents o|f any Qu|
|00004230| 69 63 6b 44 72 61 77 20 | 47 58 20 67 72 61 70 68 |ickDraw |GX graph|
|00004240| 69 63 73 20 6f 72 20 6c | 61 79 6f 75 74 20 6f 62 |ics or l|ayout ob|
|00004250| 6a 65 63 74 20 74 6f 20 | 6d 61 6b 65 20 73 75 72 |ject to |make sur|
|00004260| 65 20 69 74 20 63 6f 6e | 74 61 69 6e 73 20 74 68 |e it con|tains th|
|00004270| 65 20 63 6f 72 72 65 63 | 74 20 69 6e 66 6f 72 6d |e correc|t inform|
|00004280| 61 74 69 6f 6e 2e 20 54 | 68 65 20 63 6f 6d 6d 61 |ation. T|he comma|
|00004290| 6e 64 20 73 65 74 20 69 | 73 20 76 65 72 79 20 73 |nd set i|s very s|
|000042a0| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 61 74 20 6f |imilar t|o that o|
|000042b0| 66 20 4d 61 63 73 42 75 | 67 3b 20 6a 75 73 74 20 |f MacsBu|g; just |
|000042c0| 74 79 70 65 20 d2 3f d3 | 20 74 6f 20 67 65 74 20 |type .?.| to get |
|000042d0| 61 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 63 6f |a list o|f the co|
|000042e0| 6d 6d 61 6e 64 73 20 61 | 76 61 69 6c 61 62 6c 65 |mmands a|vailable|
|000042f0| 2e 20 47 72 61 70 68 69 | 63 73 42 75 67 20 77 6f |. Graphi|csBug wo|
|00004300| 72 6b 73 20 6f 6e 6c 79 | 20 69 6e 20 74 68 65 20 |rks only| in the |
|00004310| 64 65 62 75 67 67 69 6e | 67 20 76 65 72 73 69 6f |debuggin|g versio|
|00004320| 6e 20 6f 66 20 51 75 69 | 63 6b 44 72 61 77 20 47 |n of Qui|ckDraw G|
|00004330| 58 20 31 2e 30 62 31 20 | 62 75 74 20 69 6e 20 62 |X 1.0b1 |but in b|
|00004340| 6f 74 68 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |oth vers|ions of |
|00004350| 6c 61 74 65 72 20 51 75 | 69 63 6b 44 72 61 77 20 |later Qu|ickDraw |
|00004360| 47 58 20 72 65 6c 65 61 | 73 65 73 2e 0d 49 4e 49 |GX relea|ses..INI|
|00004370| 54 49 41 4c 49 5a 49 4e | 47 20 51 55 49 43 4b 44 |TIALIZIN|G QUICKD|
|00004380| 52 41 57 20 47 58 0d 4e | 6f 77 20 74 68 61 74 20 |RAW GX.N|ow that |
|00004390| 77 65 d5 76 65 20 63 68 | 65 63 6b 65 64 20 6f 75 |we.ve ch|ecked ou|
|000043a0| 74 20 74 68 65 20 68 6f | 72 73 65 70 6f 77 65 72 |t the ho|rsepower|
|000043b0| 20 75 6e 64 65 72 20 74 | 68 65 20 68 6f 6f 64 20 | under t|he hood |
|000043c0| 61 6e 64 20 74 68 65 20 | 61 6d 65 6e 69 74 69 65 |and the |amenitie|
|000043d0| 73 20 62 75 69 6c 74 20 | 69 6e 20 66 6f 72 20 70 |s built |in for p|
|000043e0| 72 6f 67 72 61 6d 6d 65 | 72 73 2c 20 77 65 d5 72 |rogramme|rs, we.r|
|000043f0| 65 20 72 65 61 64 79 20 | 74 6f 20 67 65 74 20 51 |e ready |to get Q|
|00004400| 75 69 63 6b 44 72 61 77 | 20 47 58 20 75 70 20 61 |uickDraw| GX up a|
|00004410| 6e 64 20 64 72 61 77 69 | 6e 67 2e 20 54 68 65 20 |nd drawi|ng. The |
|00004420| 66 69 72 73 74 20 73 74 | 65 70 20 69 73 20 74 6f |first st|ep is to|
|00004430| 20 69 6e 69 74 69 61 6c | 69 7a 65 20 51 75 69 63 | initial|ize Quic|
|00004440| 6b 44 72 61 77 20 47 58 | 2c 20 62 75 74 20 62 65 |kDraw GX|, but be|
|00004450| 66 6f 72 65 20 79 6f 75 | 20 64 6f 2c 20 79 6f 75 |fore you| do, you|
|00004460| 20 6e 65 65 64 20 74 6f | 20 6d 61 6b 65 20 73 75 | need to| make su|
|00004470| 72 65 20 74 68 65 20 75 | 73 65 72 20 68 61 73 20 |re the u|ser has |
|00004480| 69 6e 73 74 61 6c 6c 65 | 64 20 69 74 2e 20 55 73 |installe|d it. Us|
|00004490| 65 20 74 68 65 20 47 65 | 73 74 61 6c 74 20 73 65 |e the Ge|stalt se|
|000044a0| 6c 65 63 74 6f 72 20 27 | 67 72 66 78 27 20 74 6f |lector '|grfx' to|
|000044b0| 20 64 65 74 65 72 6d 69 | 6e 65 20 77 68 65 74 68 | determi|ne wheth|
|000044c0| 65 72 20 74 68 65 20 67 | 72 61 70 68 69 63 73 20 |er the g|raphics |
|000044d0| 61 6e 64 20 74 79 70 6f | 67 72 61 70 68 79 20 70 |and typo|graphy p|
|000044e0| 6f 72 74 69 6f 6e 73 20 | 6f 66 20 51 75 69 63 6b |ortions |of Quick|
|000044f0| 44 72 61 77 20 47 58 20 | 68 61 76 65 20 62 65 65 |Draw GX |have bee|
|00004500| 6e 20 69 6e 73 74 61 6c | 6c 65 64 2c 20 61 6e 64 |n instal|led, and|
|00004510| 20 74 68 65 20 47 65 73 | 74 61 6c 74 20 73 65 6c | the Ges|talt sel|
|00004520| 65 63 74 6f 72 20 27 70 | 6d 67 72 27 20 74 6f 20 |ector 'p|mgr' to |
|00004530| 64 65 74 65 72 6d 69 6e | 65 20 77 68 65 74 68 65 |determin|e whethe|
|00004540| 72 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 70 |r QuickD|raw GX p|
|00004550| 72 69 6e 74 69 6e 67 20 | 68 61 73 20 62 65 65 6e |rinting |has been|
|00004560| 20 69 6e 73 74 61 6c 6c | 65 64 2e 0d 49 6e 20 74 | install|ed..In t|
|00004570| 68 65 20 63 61 73 65 20 | 6f 66 20 6f 75 72 20 51 |he case |of our Q|
|00004580| 75 69 63 6b 44 72 61 77 | 20 47 58 20 73 68 65 6c |uickDraw| GX shel|
|00004590| 6c 2c 20 74 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |l, the f|ollowing|
|000045a0| 20 72 6f 75 74 69 6e 65 | 20 66 69 6e 64 73 20 6f | routine| finds o|
|000045b0| 75 74 20 77 68 69 63 68 | 20 70 61 72 74 73 20 6f |ut which| parts o|
|000045c0| 66 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 68 |f QuickD|raw GX h|
|000045d0| 61 76 65 20 62 65 65 6e | 20 69 6e 73 74 61 6c 6c |ave been| install|
|000045e0| 65 64 3a 0d 42 6f 6f 6c | 65 61 6e 20 51 75 69 63 |ed:.Bool|ean Quic|
|000045f0| 6b 44 72 61 77 47 58 41 | 76 61 69 6c 61 62 6c 65 |kDrawGXA|vailable|
|00004600| 28 29 0d 7b 0d 09 6c 6f | 6e 67 09 74 68 65 46 65 |().{..lo|ng.theFe|
|00004610| 61 74 75 72 65 49 6e 51 | 75 65 73 74 69 6f 6e 3b |atureInQ|uestion;|
|00004620| 0d 09 69 66 20 28 47 65 | 73 74 61 6c 74 28 27 67 |..if (Ge|stalt('g|
|00004630| 72 66 78 27 2c 20 26 74 | 68 65 46 65 61 74 75 72 |rfx', &t|heFeatur|
|00004640| 65 49 6e 51 75 65 73 74 | 69 6f 6e 29 20 3d 3d 20 |eInQuest|ion) == |
|00004650| 6e 6f 45 72 72 29 0d 09 | 7b 0d 09 09 69 66 20 28 |noErr)..|{...if (|
|00004660| 47 65 73 74 61 6c 74 28 | 27 70 6d 67 72 27 2c 20 |Gestalt(|'pmgr', |
|00004670| 26 74 68 65 46 65 61 74 | 75 72 65 49 6e 51 75 65 |&theFeat|ureInQue|
|00004680| 73 74 69 6f 6e 29 20 3d | 3d 20 6e 6f 45 72 72 29 |stion) =|= noErr)|
|00004690| 0d 09 09 09 67 51 44 47 | 58 50 72 69 6e 74 69 6e |....gQDG|XPrintin|
|000046a0| 67 49 6e 73 74 61 6c 6c | 65 64 20 3d 20 74 72 75 |gInstall|ed = tru|
|000046b0| 65 3b 0d 09 09 72 65 74 | 75 72 6e 20 28 74 72 75 |e;...ret|urn (tru|
|000046c0| 65 29 3b 0d 09 7d 0d 09 | 72 65 74 75 72 6e 20 28 |e);..}..|return (|
|000046d0| 66 61 6c 73 65 29 3b 0d | 7d 0d 0d 54 68 65 20 51 |false);.|}..The Q|
|000046e0| 75 69 63 6b 44 72 61 77 | 20 47 58 20 73 68 65 6c |uickDraw| GX shel|
|000046f0| 6c 20 75 73 65 73 20 74 | 68 65 20 67 6c 6f 62 61 |l uses t|he globa|
|00004700| 6c 20 76 61 72 69 61 62 | 6c 65 20 67 51 44 47 58 |l variab|le gQDGX|
|00004710| 50 72 69 6e 74 69 6e 67 | 49 6e 73 74 61 6c 6c 65 |Printing|Installe|
|00004720| 64 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 69 |d to det|ermine i|
|00004730| 66 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 70 |f QuickD|raw GX p|
|00004740| 72 69 6e 74 69 6e 67 20 | 68 61 73 20 62 65 65 6e |rinting |has been|
|00004750| 20 69 6e 73 74 61 6c 6c | 65 64 2e 20 49 66 20 69 | install|ed. If i|
|00004760| 74 20 68 61 73 2c 20 74 | 68 65 20 70 72 69 6e 74 |t has, t|he print|
|00004770| 69 6e 67 20 6d 65 6e 75 | 20 69 74 65 6d 73 20 69 |ing menu| items i|
|00004780| 6e 20 74 68 65 20 46 69 | 6c 65 20 6d 65 6e 75 20 |n the Fi|le menu |
|00004790| 61 72 65 20 65 6e 61 62 | 6c 65 64 2e 20 4f 74 68 |are enab|led. Oth|
|000047a0| 65 72 77 69 73 65 2c 20 | 61 6e 20 61 6c 65 72 74 |erwise, |an alert|
|000047b0| 20 74 65 6c 6c 73 20 74 | 68 65 20 75 73 65 72 20 | tells t|he user |
|000047c0| 74 68 61 74 20 51 75 69 | 63 6b 44 72 61 77 20 47 |that Qui|ckDraw G|
|000047d0| 58 20 70 72 69 6e 74 69 | 6e 67 20 68 61 73 6e d5 |X printi|ng hasn.|
|000047e0| 74 20 62 65 65 6e 20 69 | 6e 73 74 61 6c 6c 65 64 |t been i|nstalled|
|000047f0| 2c 20 61 6e 64 20 74 68 | 65 20 61 70 70 6c 69 63 |, and th|e applic|
|00004800| 61 74 69 6f 6e 20 77 6f | 72 6b 73 20 77 69 74 68 |ation wo|rks with|
|00004810| 6f 75 74 20 70 72 69 6e | 74 69 6e 67 2e 0d 4f 6e |out prin|ting..On|
|00004820| 63 65 20 79 6f 75 20 6b | 6e 6f 77 20 74 68 61 74 |ce you k|now that|
|00004830| 20 74 68 65 20 75 73 65 | 72 20 68 61 73 20 51 75 | the use|r has Qu|
|00004840| 69 63 6b 44 72 61 77 20 | 47 58 2c 20 79 6f 75 d5 |ickDraw |GX, you.|
|00004850| 72 65 20 72 65 61 64 79 | 20 74 6f 20 69 6e 69 74 |re ready| to init|
|00004860| 69 61 6c 69 7a 65 20 69 | 74 2e 20 41 66 74 65 72 |ialize i|t. After|
|00004870| 20 74 68 65 20 67 65 6e | 65 72 69 63 20 4d 61 63 | the gen|eric Mac|
|00004880| 69 6e 74 6f 73 68 20 54 | 6f 6f 6c 62 6f 78 20 69 |intosh T|oolbox i|
|00004890| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 2c 20 79 |nitializ|ation, y|
|000048a0| 6f 75 20 63 72 65 61 74 | 65 20 61 20 6e 65 77 20 |ou creat|e a new |
|000048b0| 67 72 61 70 68 69 63 73 | 20 63 6c 69 65 6e 74 20 |graphics| client |
|000048c0| 74 6f 20 61 6c 6c 6f 63 | 61 74 65 20 6d 65 6d 6f |to alloc|ate memo|
|000048d0| 72 79 2e 20 54 68 65 6e | 20 79 6f 75 20 63 61 6e |ry. Then| you can|
|000048e0| 20 73 65 74 20 75 70 20 | 65 72 72 6f 72 20 68 61 | set up |error ha|
|000048f0| 6e 64 6c 69 6e 67 20 61 | 6e 64 20 76 61 6c 69 64 |ndling a|nd valid|
|00004900| 61 74 69 6f 6e 20 61 73 | 20 61 6e 20 61 69 64 20 |ation as| an aid |
|00004910| 74 6f 20 74 72 61 63 6b | 69 6e 67 20 64 6f 77 6e |to track|ing down|
|00004920| 20 70 72 6f 62 6c 65 6d | 73 2c 20 61 6c 74 68 6f | problem|s, altho|
|00004930| 75 67 68 20 69 66 20 79 | 6f 75 d5 72 65 20 65 61 |ugh if y|ou.re ea|
|00004940| 67 65 72 20 74 6f 20 67 | 65 74 20 6f 6e 20 77 69 |ger to g|et on wi|
|00004950| 74 68 20 64 72 61 77 69 | 6e 67 2c 20 79 6f 75 20 |th drawi|ng, you |
|00004960| 64 6f 6e d5 74 20 68 61 | 76 65 20 74 6f 20 64 6f |don.t ha|ve to do|
|00004970| 20 74 68 69 73 20 72 69 | 67 68 74 20 6e 6f 77 2e | this ri|ght now.|
|00004980| 20 46 69 6e 61 6c 6c 79 | 2c 20 79 6f 75 20 63 61 | Finally|, you ca|
|00004990| 6e 20 69 6e 69 74 69 61 | 6c 69 7a 65 20 74 68 65 |n initia|lize the|
|000049a0| 20 63 6f 6d 6d 6f 6e 20 | 63 6f 6c 6f 72 20 6c 69 | common |color li|
|000049b0| 62 72 61 72 79 20 74 6f | 20 67 65 74 20 71 75 69 |brary to| get qui|
|000049c0| 63 6b 20 61 6e 64 20 65 | 61 73 79 20 63 6f 6c 6f |ck and e|asy colo|
|000049d0| 72 2e 20 49 6e 20 74 68 | 65 20 51 75 69 63 6b 44 |r. In th|e QuickD|
|000049e0| 72 61 77 20 47 58 20 73 | 68 65 6c 6c 2c 20 74 68 |raw GX s|hell, th|
|000049f0| 65 20 72 6f 75 74 69 6e | 65 20 51 75 69 63 6b 44 |e routin|e QuickD|
|00004a00| 72 61 77 47 58 49 6e 69 | 74 20 64 6f 65 73 20 61 |rawGXIni|t does a|
|00004a10| 6c 6c 20 6f 66 20 74 68 | 69 73 20 69 6e 69 74 69 |ll of th|is initi|
|00004a20| 61 6c 69 7a 61 74 69 6f | 6e 2e 0d 43 52 45 41 54 |alizatio|n..CREAT|
|00004a30| 49 4e 47 20 41 20 4e 45 | 57 20 47 52 41 50 48 49 |ING A NE|W GRAPHI|
|00004a40| 43 53 20 43 4c 49 45 4e | 54 0d 41 20 67 72 61 70 |CS CLIEN|T.A grap|
|00004a50| 68 69 63 73 20 63 6c 69 | 65 6e 74 20 69 73 20 61 |hics cli|ent is a|
|00004a60| 20 72 65 66 65 72 65 6e | 63 65 20 74 6f 20 74 68 | referen|ce to th|
|00004a70| 65 20 62 6c 6f 63 6b 20 | 6f 66 20 4d 75 6c 74 69 |e block |of Multi|
|00004a80| 46 69 6e 64 65 72 20 6d | 65 6d 6f 72 79 20 75 73 |Finder m|emory us|
|00004a90| 65 64 20 62 79 20 51 75 | 69 63 6b 44 72 61 77 20 |ed by Qu|ickDraw |
|00004aa0| 47 58 20 67 72 61 70 68 | 69 63 73 20 61 6e 64 20 |GX graph|ics and |
|00004ab0| 6c 61 79 6f 75 74 20 63 | 61 6c 6c 65 64 20 74 68 |layout c|alled th|
|00004ac0| 65 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 68 |e QuickD|raw GX h|
|00004ad0| 65 61 70 2e 20 57 68 65 | 6e 20 79 6f 75 72 20 61 |eap. Whe|n your a|
|00004ae0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 63 72 65 61 74 |pplicati|on creat|
|00004af0| 65 73 20 61 20 6e 65 77 | 20 67 72 61 70 68 69 63 |es a new| graphic|
|00004b00| 73 20 63 6c 69 65 6e 74 | 2c 20 51 75 69 63 6b 44 |s client|, QuickD|
|00004b10| 72 61 77 20 47 58 20 75 | 73 75 61 6c 6c 79 20 61 |raw GX u|sually a|
|00004b20| 6c 6c 6f 63 61 74 65 73 | 20 74 68 69 73 20 62 6c |llocates| this bl|
|00004b30| 6f 63 6b 20 6f 66 20 6d | 65 6d 6f 72 79 2e 20 54 |ock of m|emory. T|
|00004b40| 68 65 20 51 75 69 63 6b | 44 72 61 77 20 47 58 20 |he Quick|Draw GX |
|00004b50| 68 65 61 70 20 63 6f 6e | 74 61 69 6e 73 20 61 6c |heap con|tains al|
|00004b60| 6c 20 74 68 65 20 67 72 | 61 70 68 69 63 73 20 61 |l the gr|aphics a|
|00004b70| 6e 64 20 6c 61 79 6f 75 | 74 20 6f 62 6a 65 63 74 |nd layou|t object|
|00004b80| 73 20 79 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |s your a|pplicati|
|00004b90| 6f 6e 20 63 72 65 61 74 | 65 73 20 77 68 69 6c 65 |on creat|es while|
|00004ba0| 20 72 75 6e 6e 69 6e 67 | 20 51 75 69 63 6b 44 72 | running| QuickDr|
|00004bb0| 61 77 20 47 58 2c 20 61 | 73 20 77 65 6c 6c 20 61 |aw GX, a|s well a|
|00004bc0| 73 20 61 20 66 65 77 20 | 6f 62 6a 65 63 74 73 20 |s a few |objects |
|00004bd0| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 75 73 65 |QuickDra|w GX use|
|00004be0| 73 20 74 6f 20 6d 61 6e | 61 67 65 20 74 68 65 20 |s to man|age the |
|00004bf0| 68 65 61 70 2e 20 28 53 | 65 65 20 d2 4d 61 6e 61 |heap. (S|ee .Mana|
|00004c00| 67 69 6e 67 20 4d 65 6d | 6f 72 79 20 69 6e 20 74 |ging Mem|ory in t|
|00004c10| 68 65 20 51 75 69 63 6b | 44 72 61 77 20 47 58 20 |he Quick|Draw GX |
|00004c20| 48 65 61 70 d3 20 66 6f | 72 20 6d 6f 72 65 20 64 |Heap. fo|r more d|
|00004c30| 65 74 61 69 6c 73 2e 29 | 0d 54 68 65 20 73 69 6d |etails.)|.The sim|
|00004c40| 70 6c 65 73 74 20 77 61 | 79 20 74 6f 20 63 72 65 |plest wa|y to cre|
|00004c50| 61 74 65 20 61 20 67 72 | 61 70 68 69 63 73 20 63 |ate a gr|aphics c|
|00004c60| 6c 69 65 6e 74 20 69 73 | 20 74 6f 20 63 61 6c 6c |lient is| to call|
|00004c70| 20 45 6e 74 65 72 47 72 | 61 70 68 69 63 73 2c 20 | EnterGr|aphics, |
|00004c80| 77 68 69 63 68 20 64 65 | 66 69 6e 65 73 20 61 20 |which de|fines a |
|00004c90| 63 6c 69 65 6e 74 20 66 | 6f 72 20 79 6f 75 20 62 |client f|or you b|
|00004ca0| 61 73 65 64 20 6f 6e 20 | 73 6f 6d 65 20 66 75 6e |ased on |some fun|
|00004cb0| 64 61 6d 65 6e 74 61 6c | 20 61 73 73 75 6d 70 74 |damental| assumpt|
|00004cc0| 69 6f 6e 73 2e 20 49 66 | 20 79 6f 75 20 77 61 6e |ions. If| you wan|
|00004cd0| 74 20 74 6f 20 68 61 76 | 65 20 6d 6f 72 65 20 63 |t to hav|e more c|
|00004ce0| 6f 6e 74 72 6f 6c 20 6f | 76 65 72 20 74 68 65 20 |ontrol o|ver the |
|00004cf0| 67 72 61 70 68 69 63 73 | 20 63 6c 69 65 6e 74 20 |graphics| client |
|00004d00| 79 6f 75 20 63 72 65 61 | 74 65 2c 20 63 61 6c 6c |you crea|te, call|
|00004d10| 20 47 58 4e 65 77 47 72 | 61 70 68 69 63 73 43 6c | GXNewGr|aphicsCl|
|00004d20| 69 65 6e 74 3a 0d 67 47 | 72 61 70 68 69 63 73 43 |ient:.gG|raphicsC|
|00004d30| 6c 69 65 6e 74 20 3d 20 | 47 58 4e 65 77 47 72 61 |lient = |GXNewGra|
|00004d40| 70 68 69 63 73 43 6c 69 | 65 6e 74 28 6e 69 6c 2c |phicsCli|ent(nil,|
|00004d50| 20 67 47 72 61 70 68 69 | 63 73 48 65 61 70 53 69 | gGraphi|csHeapSi|
|00004d60| 7a 65 20 2a 20 31 30 32 | 34 2c 20 30 4c 29 3b 0d |ze * 102|4, 0L);.|
|00004d70| 54 68 65 20 76 61 72 69 | 61 62 6c 65 20 67 47 72 |The vari|able gGr|
|00004d80| 61 70 68 69 63 73 43 6c | 69 65 6e 74 20 68 6f 6c |aphicsCl|ient hol|
|00004d90| 64 73 20 74 68 65 20 6e | 65 77 20 67 72 61 70 68 |ds the n|ew graph|
|00004da0| 69 63 73 20 63 6c 69 65 | 6e 74 2e 20 59 6f 75 20 |ics clie|nt. You |
|00004db0| 63 61 6e 20 75 73 65 20 | 74 68 69 73 20 76 61 72 |can use |this var|
|00004dc0| 69 61 62 6c 65 20 61 6e | 79 74 69 6d 65 20 79 6f |iable an|ytime yo|
|00004dd0| 75 20 6e 65 65 64 20 74 | 6f 20 61 63 63 65 73 73 |u need t|o access|
|00004de0| 20 74 68 69 73 20 67 72 | 61 70 68 69 63 73 20 63 | this gr|aphics c|
|00004df0| 6c 69 65 6e 74 2e 20 49 | 6e 20 6f 75 72 20 73 68 |lient. I|n our sh|
|00004e00| 65 6c 6c 2c 20 77 65 20 | 6f 6e 6c 79 20 6e 65 65 |ell, we |only nee|
|00004e10| 64 20 74 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |d this v|ariable |
|00004e20| 77 68 65 6e 20 74 68 65 | 20 61 70 70 6c 69 63 61 |when the| applica|
|00004e30| 74 69 6f 6e 20 73 68 75 | 74 73 20 64 6f 77 6e 2e |tion shu|ts down.|
|00004e40| 20 54 68 65 20 66 69 72 | 73 74 20 70 61 72 61 6d | The fir|st param|
|00004e50| 65 74 65 72 20 74 65 6c | 6c 73 20 74 68 65 20 4d |eter tel|ls the M|
|00004e60| 65 6d 6f 72 79 20 4d 61 | 6e 61 67 65 72 20 77 68 |emory Ma|nager wh|
|00004e70| 65 72 65 20 77 65 20 77 | 61 6e 74 20 74 6f 20 63 |ere we w|ant to c|
|00004e80| 72 65 61 74 65 20 74 68 | 65 20 51 75 69 63 6b 44 |reate th|e QuickD|
|00004e90| 72 61 77 20 47 58 20 68 | 65 61 70 2e 20 41 20 6e |raw GX h|eap. A n|
|00004ea0| 69 6c 20 76 61 6c 75 65 | 20 74 65 6c 6c 73 20 74 |il value| tells t|
|00004eb0| 68 65 20 4d 65 6d 6f 72 | 79 20 4d 61 6e 61 67 65 |he Memor|y Manage|
|00004ec0| 72 20 74 6f 20 63 72 65 | 61 74 65 20 74 68 65 20 |r to cre|ate the |
|00004ed0| 68 65 61 70 20 77 69 74 | 68 69 6e 20 4d 75 6c 74 |heap wit|hin Mult|
|00004ee0| 69 46 69 6e 64 65 72 20 | 6d 65 6d 6f 72 79 2e 20 |iFinder |memory. |
|00004ef0| 54 68 61 74 d5 73 20 75 | 73 75 61 6c 6c 79 20 77 |That.s u|sually w|
|00004f00| 68 65 72 65 20 79 6f 75 | 20 77 61 6e 74 20 69 74 |here you| want it|
|00004f10| 2c 20 62 75 74 20 79 6f | 75 20 63 61 6e 20 61 6c |, but yo|u can al|
|00004f20| 73 6f 20 73 70 65 63 69 | 66 79 20 61 20 70 6f 69 |so speci|fy a poi|
|00004f30| 6e 74 65 72 20 74 6f 20 | 61 20 62 6c 6f 63 6b 20 |nter to |a block |
|00004f40| 6f 66 20 6d 65 6d 6f 72 | 79 20 69 6e 20 79 6f 75 |of memor|y in you|
|00004f50| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 68 65 |r applic|ation he|
|00004f60| 61 70 20 6f 72 20 65 76 | 65 6e 20 74 68 65 20 73 |ap or ev|en the s|
|00004f70| 79 73 74 65 6d 20 68 65 | 61 70 2e 20 54 68 65 20 |ystem he|ap. The |
|00004f80| 73 65 63 6f 6e 64 20 70 | 61 72 61 6d 65 74 65 72 |second p|arameter|
|00004f90| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 73 69 7a | defines| the siz|
|00004fa0| 65 20 6f 66 20 74 68 65 | 20 68 65 61 70 20 69 6e |e of the| heap in|
|00004fb0| 20 62 79 74 65 73 2e 20 | 4f 75 72 20 73 68 65 6c | bytes. |Our shel|
|00004fc0| 6c 20 75 73 65 73 20 61 | 20 31 31 35 4b 20 68 65 |l uses a| 115K he|
|00004fd0| 61 70 20 28 67 47 72 61 | 70 68 69 63 73 48 65 61 |ap (gGra|phicsHea|
|00004fe0| 70 53 69 7a 65 20 3d 20 | 31 31 35 29 3b 20 69 66 |pSize = |115); if|
|00004ff0| 20 79 6f 75 20 70 61 73 | 73 20 30 2c 20 79 6f 75 | you pas|s 0, you|
|00005000| 20 67 65 74 20 74 68 65 | 20 64 65 66 61 75 6c 74 | get the| default|
|00005010| 20 68 65 61 70 20 73 69 | 7a 65 20 6f 66 20 36 30 | heap si|ze of 60|
|00005020| 30 4b 2e 20 54 68 65 20 | 6c 61 73 74 20 70 61 72 |0K. The |last par|
|00005030| 61 6d 65 74 65 72 2c 20 | 6e 61 6d 65 64 20 73 65 |ameter, |named se|
|00005040| 70 61 72 61 74 65 53 74 | 61 63 6b 2c 20 74 65 6c |parateSt|ack, tel|
|00005050| 6c 73 20 51 75 69 63 6b | 44 72 61 77 20 47 58 20 |ls Quick|Draw GX |
|00005060| 74 6f 20 61 6c 6c 6f 63 | 61 74 65 20 61 20 73 74 |to alloc|ate a st|
|00005070| 61 63 6b 20 66 6f 72 20 | 74 68 65 20 67 72 61 70 |ack for |the grap|
|00005080| 68 69 63 73 20 63 6c 69 | 65 6e 74 2c 20 77 68 69 |hics cli|ent, whi|
|00005090| 63 68 20 69 73 20 6e 65 | 63 65 73 73 61 72 79 20 |ch is ne|cessary |
|000050a0| 69 66 20 74 68 61 74 20 | 63 6c 69 65 6e 74 20 69 |if that |client i|
|000050b0| 73 20 67 6f 69 6e 67 20 | 74 6f 20 72 75 6e 20 61 |s going |to run a|
|000050c0| 74 20 69 6e 74 65 72 72 | 75 70 74 20 74 69 6d 65 |t interr|upt time|
|000050d0| 2e 20 54 6f 20 67 65 74 | 20 61 20 73 65 70 61 72 |. To get| a separ|
|000050e0| 61 74 65 20 73 74 61 63 | 6b 2c 20 6a 75 73 74 20 |ate stac|k, just |
|000050f0| 70 61 73 73 20 61 6e 79 | 20 6e 6f 6e 7a 65 72 6f |pass any| nonzero|
|00005100| 20 76 61 6c 75 65 20 74 | 68 61 74 20 64 65 66 69 | value t|hat defi|
|00005110| 6e 65 73 20 74 68 65 20 | 73 74 61 63 6b 20 73 69 |nes the |stack si|
|00005120| 7a 65 2e 0d 53 45 54 54 | 49 4e 47 20 55 50 20 45 |ze..SETT|ING UP E|
|00005130| 52 52 4f 52 20 48 41 4e | 44 4c 49 4e 47 20 41 4e |RROR HAN|DLING AN|
|00005140| 44 20 56 41 4c 49 44 41 | 54 49 4f 4e 0d 41 66 74 |D VALIDA|TION.Aft|
|00005150| 65 72 20 73 65 74 74 69 | 6e 67 20 75 70 20 74 68 |er setti|ng up th|
|00005160| 65 20 67 72 61 70 68 69 | 63 73 20 63 6c 69 65 6e |e graphi|cs clien|
|00005170| 74 2c 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 65 6e |t, you s|hould en|
|00005180| 61 62 6c 65 20 74 68 65 | 20 65 72 72 6f 72 2c 20 |able the| error, |
|00005190| 77 61 72 6e 69 6e 67 2c | 20 61 6e 64 20 6e 6f 74 |warning,| and not|
|000051a0| 69 63 65 20 63 61 70 61 | 62 69 6c 69 74 69 65 73 |ice capa|bilities|
|000051b0| 20 69 66 20 79 6f 75 20 | 77 61 6e 74 20 74 6f 20 | if you |want to |
|000051c0| 6d 61 6b 65 20 64 65 62 | 75 67 67 69 6e 67 20 65 |make deb|ugging e|
|000051d0| 61 73 69 65 72 20 66 6f | 72 20 79 6f 75 72 73 65 |asier fo|r yourse|
|000051e0| 6c 66 20 64 6f 77 6e 20 | 74 68 65 20 6c 69 6e 65 |lf down |the line|
|000051f0| 2e 20 49 6e 20 6f 75 72 | 20 0d 0d 4d 41 4e 41 47 |. In our| ..MANAG|
|00005200| 49 4e 47 20 4d 45 4d 4f | 52 59 20 49 4e 20 54 48 |ING MEMO|RY IN TH|
|00005210| 45 20 51 55 49 43 4b 44 | 52 41 57 20 47 58 20 48 |E QUICKD|RAW GX H|
|00005220| 45 41 50 09 09 0d 54 68 | 65 20 67 72 61 70 68 69 |EAP...Th|e graphi|
|00005230| 63 73 20 61 6e 64 20 6c | 61 79 6f 75 74 20 70 6f |cs and l|ayout po|
|00005240| 72 74 69 6f 6e 73 20 6f | 66 20 51 75 69 63 6b 44 |rtions o|f QuickD|
|00005250| 72 61 77 20 47 58 20 75 | 73 65 20 74 68 65 69 72 |raw GX u|se their|
|00005260| 20 6f 77 6e 20 68 65 61 | 70 20 66 6f 72 6d 61 74 | own hea|p format|
|00005270| 20 61 6e 64 20 74 68 65 | 69 72 20 6f 77 6e 20 72 | and the|ir own r|
|00005280| 65 6c 6f 63 61 74 69 6e | 67 20 4d 65 6d 6f 72 79 |elocatin|g Memory|
|00005290| 20 4d 61 6e 61 67 65 72 | 20 74 6f 20 69 6d 70 72 | Manager| to impr|
|000052a0| 6f 76 65 20 65 66 66 69 | 63 69 65 6e 63 79 2e 20 |ove effi|ciency. |
|000052b0| 57 68 79 20 69 73 20 74 | 68 69 73 20 6e 65 63 65 |Why is t|his nece|
|000052c0| 73 73 61 72 79 3f 20 54 | 68 65 20 47 58 20 73 79 |ssary? T|he GX sy|
|000052d0| 73 74 65 6d 20 69 73 20 | 6f 62 6a 65 63 74 20 62 |stem is |object b|
|000052e0| 61 73 65 64 2c 20 73 6f | 20 69 74 20 6e 65 65 64 |ased, so| it need|
|000052f0| 73 20 74 68 65 20 61 62 | 69 6c 69 74 79 20 74 6f |s the ab|ility to|
|00005300| 20 71 75 69 63 6b 6c 79 | 20 6d 6f 76 65 20 67 72 | quickly| move gr|
|00005310| 61 70 68 69 63 73 20 61 | 6e 64 20 6c 61 79 6f 75 |aphics a|nd layou|
|00005320| 74 20 6f 62 6a 65 63 74 | 73 20 66 72 6f 6d 20 74 |t object|s from t|
|00005330| 68 65 20 68 65 61 70 20 | 6f 6e 74 6f 20 64 69 73 |he heap |onto dis|
|00005340| 6b 20 77 68 65 6e 20 74 | 68 65 79 20 61 72 65 6e |k when t|hey aren|
|00005350| d5 74 20 6e 65 65 64 65 | 64 20 61 6e 64 20 61 64 |.t neede|d and ad|
|00005360| 64 69 74 69 6f 6e 61 6c | 20 6d 65 6d 6f 72 79 20 |ditional| memory |
|00005370| 69 73 20 72 65 71 75 69 | 72 65 64 2c 20 61 6e 64 |is requi|red, and|
|00005380| 20 74 6f 20 6d 6f 76 65 | 20 74 68 65 73 65 20 6f | to move| these o|
|00005390| 62 6a 65 63 74 73 20 62 | 61 63 6b 20 69 6e 74 6f |bjects b|ack into|
|000053a0| 20 6d 65 6d 6f 72 79 20 | 77 68 65 6e 20 74 68 65 | memory |when the|
|000053b0| 79 d5 72 65 20 6e 65 65 | 64 65 64 2e 20 54 68 69 |y.re nee|ded. Thi|
|000053c0| 73 20 69 73 6e d5 74 20 | 70 6f 73 73 69 62 6c 65 |s isn.t |possible|
|000053d0| 20 77 69 74 68 20 74 68 | 65 20 63 75 72 72 65 6e | with th|e curren|
|000053e0| 74 20 4d 65 6d 6f 72 79 | 20 4d 61 6e 61 67 65 72 |t Memory| Manager|
|000053f0| 2e 20 0d 59 6f 75 72 20 | 61 70 70 6c 69 63 61 74 |. .Your |applicat|
|00005400| 69 6f 6e 20 68 61 73 20 | 71 75 69 74 65 20 61 20 |ion has |quite a |
|00005410| 62 69 74 20 6f 66 20 63 | 6f 6e 74 72 6f 6c 20 6f |bit of c|ontrol o|
|00005420| 76 65 72 20 74 68 65 20 | 6f 62 6a 65 63 74 73 20 |ver the |objects |
|00005430| 69 74 20 63 72 65 61 74 | 65 73 20 69 6e 20 74 68 |it creat|es in th|
|00005440| 65 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 68 |e QuickD|raw GX h|
|00005450| 65 61 70 2e 20 54 68 65 | 20 51 75 69 63 6b 44 72 |eap. The| QuickDr|
|00005460| 61 77 20 47 58 20 41 50 | 49 20 70 72 6f 76 69 64 |aw GX AP|I provid|
|00005470| 65 73 20 63 61 6c 6c 73 | 20 74 6f 20 75 6e 6c 6f |es calls| to unlo|
|00005480| 61 64 20 6f 62 6a 65 63 | 74 73 20 66 72 6f 6d 20 |ad objec|ts from |
|00005490| 74 68 65 20 68 65 61 70 | 2c 20 61 6e 64 20 73 68 |the heap|, and sh|
|000054a0| 61 70 65 20 61 74 74 72 | 69 62 75 74 65 73 20 74 |ape attr|ibutes t|
|000054b0| 68 61 74 20 69 6e 64 69 | 63 61 74 65 20 77 68 65 |hat indi|cate whe|
|000054c0| 6e 20 61 20 73 68 61 70 | 65 20 73 68 6f 75 6c 64 |n a shap|e should|
|000054d0| 20 62 65 20 70 61 67 65 | 64 20 6f 75 74 20 6f 66 | be page|d out of|
|000054e0| 20 74 68 65 20 68 65 61 | 70 20 74 6f 20 74 68 65 | the hea|p to the|
|000054f0| 20 62 61 63 6b 69 6e 67 | 20 73 74 6f 72 65 20 6f | backing| store o|
|00005500| 6e 20 64 69 73 6b 2e 20 | 49 66 20 79 6f 75 20 64 |n disk. |If you d|
|00005510| 6f 6e d5 74 20 75 6e 6c | 6f 61 64 20 74 68 65 20 |on.t unl|oad the |
|00005520| 6f 62 6a 65 63 74 73 20 | 6f 72 20 73 65 74 20 61 |objects |or set a|
|00005530| 6e 79 20 6f 66 20 74 68 | 65 20 73 68 61 70 65 20 |ny of th|e shape |
|00005540| 61 74 74 72 69 62 75 74 | 65 73 20 79 6f 75 72 73 |attribut|es yours|
|00005550| 65 6c 66 2c 20 51 75 69 | 63 6b 44 72 61 77 20 47 |elf, Qui|ckDraw G|
|00005560| 58 20 75 6e 6c 6f 61 64 | 73 20 74 68 65 20 6f 6c |X unload|s the ol|
|00005570| 64 65 73 74 20 6f 62 6a | 65 63 74 73 20 66 69 72 |dest obj|ects fir|
|00005580| 73 74 2e 0d 59 6f 75 20 | 63 61 6e 20 75 73 65 20 |st..You |can use |
|00005590| 61 20 47 58 55 6e 6c 6f | 61 64 20 63 61 6c 6c 20 |a GXUnlo|ad call |
|000055a0| 74 6f 20 74 65 6c 6c 20 | 51 75 69 63 6b 44 72 61 |to tell |QuickDra|
|000055b0| 77 20 47 58 20 74 6f 20 | 70 61 67 65 20 61 20 67 |w GX to |page a g|
|000055c0| 72 61 70 68 69 63 73 20 | 6f 72 20 6c 61 79 6f 75 |raphics |or layou|
|000055d0| 74 20 6f 62 6a 65 63 74 | 20 d1 20 73 70 65 63 69 |t object| . speci|
|000055e0| 66 69 63 61 6c 6c 79 2c | 20 61 20 73 68 61 70 65 |fically,| a shape|
|000055f0| 2c 20 73 74 79 6c 65 2c | 20 74 72 61 6e 73 66 6f |, style,| transfo|
|00005600| 72 6d 2c 20 69 6e 6b 2c | 20 63 6f 6c 6f 72 20 70 |rm, ink,| color p|
|00005610| 72 6f 66 69 6c 65 2c 20 | 63 6f 6c 6f 72 20 73 65 |rofile, |color se|
|00005620| 74 2c 20 6f 72 20 74 61 | 67 20 d1 20 66 72 6f 6d |t, or ta|g . from|
|00005630| 20 74 68 65 20 68 65 61 | 70 20 74 6f 20 74 68 65 | the hea|p to the|
|00005640| 20 62 61 63 6b 69 6e 67 | 20 73 74 6f 72 65 20 6f | backing| store o|
|00005650| 6e 20 64 69 73 6b 20 77 | 68 65 6e 20 74 68 65 20 |n disk w|hen the |
|00005660| 6e 65 78 74 20 6d 65 6d | 6f 72 79 20 6d 61 6e 61 |next mem|ory mana|
|00005670| 67 65 6d 65 6e 74 20 63 | 61 6c 6c 20 6f 63 63 75 |gement c|all occu|
|00005680| 72 73 2e 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |rs. For |example,|
|00005690| 20 74 6f 20 75 6e 6c 6f | 61 64 20 61 20 70 61 72 | to unlo|ad a par|
|000056a0| 74 69 63 75 6c 61 72 20 | 73 68 61 70 65 20 66 72 |ticular |shape fr|
|000056b0| 6f 6d 20 74 68 65 20 68 | 65 61 70 2c 20 79 6f 75 |om the h|eap, you|
|000056c0| 20 77 6f 75 6c 64 20 75 | 73 65 20 74 68 65 20 66 | would u|se the f|
|000056d0| 6f 6c 6c 6f 77 69 6e 67 | 20 63 61 6c 6c 3a 20 0d |ollowing| call: .|
|000056e0| 47 58 55 6e 6c 6f 61 64 | 53 68 61 70 65 28 67 78 |GXUnload|Shape(gx|
|000056f0| 53 68 61 70 65 20 74 61 | 72 67 65 74 29 3b 0d 51 |Shape ta|rget);.Q|
|00005700| 75 69 63 6b 44 72 61 77 | 20 47 58 20 6d 61 69 6e |uickDraw| GX main|
|00005710| 74 61 69 6e 73 20 61 20 | 72 65 66 65 72 65 6e 63 |tains a |referenc|
|00005720| 65 20 74 6f 20 74 68 65 | 20 6f 62 6a 65 63 74 73 |e to the| objects|
|00005730| 2c 20 73 6f 20 69 74 20 | 63 61 6e 20 72 65 61 64 |, so it |can read|
|00005740| 20 74 68 65 6d 20 66 72 | 6f 6d 20 64 69 73 6b 20 | them fr|om disk |
|00005750| 62 61 63 6b 20 69 6e 74 | 6f 20 74 68 65 20 68 65 |back int|o the he|
|00005760| 61 70 20 69 66 20 79 6f | 75 72 20 61 70 70 6c 69 |ap if yo|ur appli|
|00005770| 63 61 74 69 6f 6e 20 6e | 65 65 64 73 20 74 68 65 |cation n|eeds the|
|00005780| 6d 2e 20 49 74 20 64 6f | 65 73 20 74 68 69 73 20 |m. It do|es this |
|00005790| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 2c 20 62 |automati|cally, b|
|000057a0| 75 74 20 69 66 20 0d 09 | 79 6f 75 20 77 61 6e 74 |ut if ..|you want|
|000057b0| 20 74 6f 20 69 6d 70 72 | 6f 76 65 20 74 68 65 20 | to impr|ove the |
|000057c0| 70 65 72 66 6f 72 6d 61 | 6e 63 65 20 6f 66 20 79 |performa|nce of y|
|000057d0| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2c |our appl|ication,|
|000057e0| 20 79 6f 75 20 63 61 6e | 20 65 78 70 6c 69 63 69 | you can| explici|
|000057f0| 74 6c 79 20 6c 6f 61 64 | 20 67 72 61 70 68 69 63 |tly load| graphic|
|00005800| 73 20 61 6e 64 20 6c 61 | 79 6f 75 74 20 6f 62 6a |s and la|yout obj|
|00005810| 65 63 74 73 20 77 69 74 | 68 20 61 20 47 58 4c 6f |ects wit|h a GXLo|
|00005820| 61 64 20 63 61 6c 6c 2e | 20 46 6f 72 20 65 78 61 |ad call.| For exa|
|00005830| 6d 70 6c 65 2c 20 74 6f | 20 6c 6f 61 64 20 61 20 |mple, to| load a |
|00005840| 70 61 72 74 69 63 75 6c | 61 72 20 73 68 61 70 65 |particul|ar shape|
|00005850| 20 69 6e 74 6f 20 74 68 | 65 20 68 65 61 70 2c 20 | into th|e heap, |
|00005860| 79 6f 75 20 77 6f 75 6c | 64 20 75 73 65 20 74 68 |you woul|d use th|
|00005870| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 61 6c 6c |e follow|ing call|
|00005880| 3a 20 0d 47 58 4c 6f 61 | 64 53 68 61 70 65 28 67 |: .GXLoa|dShape(g|
|00005890| 78 53 68 61 70 65 20 74 | 61 72 67 65 74 29 3b 0d |xShape t|arget);.|
|000058a0| 54 68 65 72 65 20 61 72 | 65 20 74 77 6f 20 73 68 |There ar|e two sh|
|000058b0| 61 70 65 20 61 74 74 72 | 69 62 75 74 65 73 20 74 |ape attr|ibutes t|
|000058c0| 68 61 74 20 79 6f 75 20 | 63 61 6e 20 73 65 74 20 |hat you |can set |
|000058d0| 74 6f 20 69 6e 64 69 63 | 61 74 65 20 77 68 65 6e |to indic|ate when|
|000058e0| 20 74 6f 20 70 61 67 65 | 20 61 20 73 68 61 70 65 | to page| a shape|
|000058f0| 20 6f 75 74 20 74 6f 20 | 64 69 73 6b 20 77 68 65 | out to |disk whe|
|00005900| 6e 20 6d 65 6d 6f 72 79 | 20 69 73 20 6e 65 65 64 |n memory| is need|
|00005910| 65 64 3a 20 0d a5 09 57 | 68 65 6e 20 67 78 44 69 |ed: ...W|hen gxDi|
|00005920| 73 6b 53 68 61 70 65 20 | 69 73 20 73 65 74 2c 20 |skShape |is set, |
|00005930| 74 68 69 73 20 73 68 61 | 70 65 20 77 69 6c 6c 20 |this sha|pe will |
|00005940| 62 65 20 74 68 65 20 66 | 69 72 73 74 20 73 68 61 |be the f|irst sha|
|00005950| 70 65 20 74 6f 20 62 65 | 20 70 61 67 65 64 20 6f |pe to be| paged o|
|00005960| 75 74 20 6f 66 20 6d 65 | 6d 6f 72 79 20 74 6f 20 |ut of me|mory to |
|00005970| 64 69 73 6b 20 77 68 65 | 6e 20 6d 65 6d 6f 72 79 |disk whe|n memory|
|00005980| 20 69 73 20 6e 65 65 64 | 65 64 2e 0d a5 09 57 68 | is need|ed....Wh|
|00005990| 65 6e 20 67 78 4d 65 6d | 6f 72 79 53 68 61 70 65 |en gxMem|oryShape|
|000059a0| 20 69 73 20 73 65 74 2c | 20 74 68 69 73 20 73 68 | is set,| this sh|
|000059b0| 61 70 65 20 77 69 6c 6c | 20 62 65 20 74 68 65 20 |ape will| be the |
|000059c0| 6c 61 73 74 20 74 6f 20 | 62 65 20 70 61 67 65 64 |last to |be paged|
|000059d0| 20 6f 75 74 20 74 6f 20 | 64 69 73 6b 2e 20 0d 49 | out to |disk. .I|
|000059e0| 74 d5 73 20 67 65 6e 65 | 72 61 6c 6c 79 20 61 20 |t.s gene|rally a |
|000059f0| 67 6f 6f 64 20 69 64 65 | 61 20 74 6f 20 64 69 73 |good ide|a to dis|
|00005a00| 70 6f 73 65 20 6f 66 20 | 61 6e 20 6f 62 6a 65 63 |pose of |an objec|
|00005a10| 74 20 61 73 20 73 6f 6f | 6e 20 61 73 20 79 6f 75 |t as soo|n as you|
|00005a20| d5 76 65 20 66 69 6e 69 | 73 68 65 64 20 77 69 74 |.ve fini|shed wit|
|00005a30| 68 20 69 74 2e 20 49 66 | 20 79 6f 75 20 6c 65 61 |h it. If| you lea|
|00005a40| 76 65 20 61 20 62 75 6e | 63 68 20 6f 66 20 75 6e |ve a bun|ch of un|
|00005a50| 75 73 65 64 20 6f 62 6a | 65 63 74 73 20 6c 79 69 |used obj|ects lyi|
|00005a60| 6e 67 20 61 72 6f 75 6e | 64 20 69 6e 20 74 68 65 |ng aroun|d in the|
|00005a70| 20 68 65 61 70 2c 20 51 | 75 69 63 6b 44 72 61 77 | heap, Q|uickDraw|
|00005a80| 20 47 58 20 77 69 6c 6c | 20 6d 61 69 6e 74 61 69 | GX will| maintai|
|00005a90| 6e 20 74 68 65 6d 20 61 | 6e 64 20 70 61 67 65 20 |n them a|nd page |
|00005aa0| 74 68 65 6d 20 6f 75 74 | 20 74 6f 20 64 69 73 6b |them out| to disk|
|00005ab0| 20 77 68 65 6e 20 6d 65 | 6d 6f 72 79 20 62 65 63 | when me|mory bec|
|00005ac0| 6f 6d 65 73 20 74 69 67 | 68 74 2e 20 54 68 69 73 |omes tig|ht. This|
|00005ad0| 20 77 61 73 74 65 64 20 | 6f 70 65 72 61 74 69 6f | wasted |operatio|
|00005ae0| 6e 20 77 69 6c 6c 20 63 | 61 75 73 65 20 79 6f 75 |n will c|ause you|
|00005af0| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 74 6f |r applic|ation to|
|00005b00| 20 74 61 6b 65 20 61 20 | 70 65 72 66 6f 72 6d 61 | take a |performa|
|00005b10| 6e 63 65 20 68 69 74 2e | 20 0d 49 66 20 79 6f 75 |nce hit.| .If you|
|00005b20| 20 68 61 76 65 20 61 20 | 63 6f 6c 6c 65 63 74 69 | have a |collecti|
|00005b30| 6f 6e 20 6f 66 20 73 68 | 61 70 65 73 2c 20 73 61 |on of sh|apes, sa|
|00005b40| 79 20 61 20 70 69 63 74 | 75 72 65 2c 20 74 68 61 |y a pict|ure, tha|
|00005b50| 74 20 79 6f 75 20 77 6f | 6e d5 74 20 6e 65 65 64 |t you wo|n.t need|
|00005b60| 20 66 6f 72 20 61 20 77 | 68 69 6c 65 2c 20 79 6f | for a w|hile, yo|
|00005b70| 75 20 73 68 6f 75 6c 64 | 20 63 6f 6e 73 69 64 65 |u should| conside|
|00005b80| 72 20 66 6c 61 74 74 65 | 6e 69 6e 67 20 74 68 65 |r flatte|ning the|
|00005b90| 6d 20 74 6f 20 64 69 73 | 6b 20 61 6e 64 20 74 68 |m to dis|k and th|
|00005ba0| 65 6e 20 64 69 73 70 6f | 73 69 6e 67 20 6f 66 20 |en dispo|sing of |
|00005bb0| 74 68 65 6d 2e 20 57 68 | 65 6e 20 79 6f 75 20 66 |them. Wh|en you f|
|00005bc0| 6c 61 74 74 65 6e 20 61 | 20 73 68 61 70 65 20 74 |latten a| shape t|
|00005bd0| 6f 20 64 69 73 6b 2c 20 | 65 61 63 68 20 6f 62 6a |o disk, |each obj|
|00005be0| 65 63 74 20 69 73 20 63 | 6f 6d 70 72 65 73 73 65 |ect is c|ompresse|
|00005bf0| 64 20 61 6e 64 20 73 65 | 6e 74 20 74 6f 20 74 68 |d and se|nt to th|
|00005c00| 65 20 66 69 6c 65 20 61 | 73 20 61 20 73 74 72 65 |e file a|s a stre|
|00005c10| 61 6d 20 6f 66 20 64 61 | 74 61 2e 20 57 68 65 6e |am of da|ta. When|
|00005c20| 20 79 6f 75 20 64 69 73 | 70 6f 73 65 20 6f 66 20 | you dis|pose of |
|00005c30| 74 68 65 20 6f 62 6a 65 | 63 74 73 20 79 6f 75 20 |the obje|cts you |
|00005c40| 6a 75 73 74 20 66 6c 61 | 74 74 65 6e 65 64 2c 20 |just fla|ttened, |
|00005c50| 79 6f 75 20 66 72 65 65 | 20 75 70 20 73 6f 6d 65 |you free| up some|
|00005c60| 20 68 65 61 70 20 73 70 | 61 63 65 2e 0d 09 0d 0d | heap sp|ace.....|
|00005c70| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 73 68 65 |QuickDra|w GX she|
|00005c80| 6c 6c 20 77 65 20 65 6e | 61 62 6c 65 20 61 6c 6c |ll we en|able all|
|00005c90| 20 74 68 72 65 65 20 77 | 69 74 68 20 74 68 65 20 | three w|ith the |
|00005ca0| 72 6f 75 74 69 6e 65 73 | 20 53 65 74 47 72 61 70 |routines| SetGrap|
|00005cb0| 68 69 63 73 4c 69 62 72 | 61 72 79 45 72 72 6f 72 |hicsLibr|aryError|
|00005cc0| 73 20 28 77 68 69 63 68 | 20 65 6e 61 62 6c 65 73 |s (which| enables|
|00005cd0| 20 65 72 72 6f 72 73 20 | 61 6e 64 20 77 61 72 6e | errors |and warn|
|00005ce0| 69 6e 67 73 29 20 61 6e | 64 20 53 65 74 47 72 61 |ings) an|d SetGra|
|00005cf0| 70 68 69 63 73 4c 69 62 | 72 61 72 79 4e 6f 74 69 |phicsLib|raryNoti|
|00005d00| 63 65 73 20 28 77 68 69 | 63 68 20 65 6e 61 62 6c |ces (whi|ch enabl|
|00005d10| 65 73 20 6e 6f 74 69 63 | 65 73 29 2e 0d 54 68 65 |es notic|es)..The|
|00005d20| 20 64 65 62 75 67 67 69 | 6e 67 20 76 65 72 73 69 | debuggi|ng versi|
|00005d30| 6f 6e 20 6f 66 20 51 75 | 69 63 6b 44 72 61 77 20 |on of Qu|ickDraw |
|00005d40| 47 58 20 67 72 61 70 68 | 69 63 73 20 61 6e 64 20 |GX graph|ics and |
|00005d50| 6c 61 79 6f 75 74 20 70 | 72 6f 76 69 64 65 73 20 |layout p|rovides |
|00005d60| 65 78 74 65 6e 73 69 76 | 65 20 76 61 6c 69 64 61 |extensiv|e valida|
|00005d70| 74 69 6f 6e 20 66 61 63 | 69 6c 69 74 69 65 73 20 |tion fac|ilities |
|00005d80| 74 68 61 74 20 6c 65 74 | 20 79 6f 75 20 64 65 74 |that let| you det|
|00005d90| 65 72 6d 69 6e 65 20 77 | 68 65 74 68 65 72 20 79 |ermine w|hether y|
|00005da0| 6f 75 d5 72 65 20 70 61 | 73 73 69 6e 67 20 76 61 |ou.re pa|ssing va|
|00005db0| 6c 69 64 20 64 61 74 61 | 20 74 6f 20 74 68 65 20 |lid data| to the |
|00005dc0| 51 75 69 63 6b 44 72 61 | 77 20 47 58 20 41 50 49 |QuickDra|w GX API|
|00005dd0| 20 61 6e 64 20 77 68 65 | 74 68 65 72 20 61 6e 79 | and whe|ther any|
|00005de0| 74 68 69 6e 67 d5 73 20 | 67 6f 6e 65 20 61 77 72 |thing.s |gone awr|
|00005df0| 79 20 69 6e 74 65 72 6e | 61 6c 6c 79 2e 20 28 53 |y intern|ally. (S|
|00005e00| 65 65 20 d2 54 72 61 63 | 6b 69 6e 67 20 44 6f 77 |ee .Trac|king Dow|
|00005e10| 6e 20 61 20 4d 65 6d 6f | 72 79 20 54 72 61 73 68 |n a Memo|ry Trash|
|00005e20| 69 6e 67 20 50 72 6f 62 | 6c 65 6d d3 20 66 6f 72 |ing Prob|lem. for|
|00005e30| 20 64 65 74 61 69 6c 73 | 20 6f 6e 20 68 6f 77 20 | details| on how |
|00005e40| 74 6f 20 75 73 65 20 76 | 61 6c 69 64 61 74 69 6f |to use v|alidatio|
|00005e50| 6e 20 74 6f 20 66 69 6e | 64 20 6f 75 74 20 0d 0d |n to fin|d out ..|
|00005e60| 68 6f 77 20 64 61 6d 61 | 67 65 20 69 73 20 62 65 |how dama|ge is be|
|00005e70| 69 6e 67 20 63 61 75 73 | 65 64 20 69 6e 20 74 68 |ing caus|ed in th|
|00005e80| 65 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 68 |e QuickD|raw GX h|
|00005e90| 65 61 70 2e 29 20 49 6e | 20 67 65 6e 65 72 61 6c |eap.) In| general|
|00005ea0| 2c 20 79 6f 75 20 73 68 | 6f 75 6c 64 20 61 6c 77 |, you sh|ould alw|
|00005eb0| 61 79 73 20 72 75 6e 20 | 77 69 74 68 20 67 78 50 |ays run |with gxP|
|00005ec0| 75 62 6c 69 63 56 61 6c | 69 64 61 74 69 6f 6e 20 |ublicVal|idation |
|00005ed0| 2b 20 67 78 54 79 70 65 | 56 61 6c 69 64 61 74 69 |+ gxType|Validati|
|00005ee0| 6f 6e 20 77 68 69 6c 65 | 20 79 6f 75 d5 72 65 20 |on while| you.re |
|00005ef0| 64 65 76 65 6c 6f 70 69 | 6e 67 20 61 20 51 75 69 |developi|ng a Qui|
|00005f00| 63 6b 44 72 61 77 20 47 | 58 20 61 70 70 6c 69 63 |ckDraw G|X applic|
|00005f10| 61 74 69 6f 6e 2e 20 54 | 6f 20 73 65 74 20 74 68 |ation. T|o set th|
|00005f20| 69 73 20 6c 65 76 65 6c | 20 6f 66 20 76 61 6c 69 |is level| of vali|
|00005f30| 64 61 74 69 6f 6e 2c 20 | 6d 61 6b 65 20 74 68 69 |dation, |make thi|
|00005f40| 73 20 63 61 6c 6c 3a 0d | 47 58 53 65 74 56 61 6c |s call:.|GXSetVal|
|00005f50| 69 64 61 74 69 6f 6e 28 | 67 78 50 75 62 6c 69 63 |idation(|gxPublic|
|00005f60| 56 61 6c 69 64 61 74 69 | 6f 6e 20 2b 20 67 78 54 |Validati|on + gxT|
|00005f70| 79 70 65 56 61 6c 69 64 | 61 74 69 6f 6e 29 3b 20 |ypeValid|ation); |
|00005f80| 0d 54 68 69 73 20 73 65 | 74 74 69 6e 67 20 65 6e |.This se|tting en|
|00005f90| 73 75 72 65 73 20 74 68 | 61 74 20 66 6f 72 20 61 |sures th|at for a|
|00005fa0| 6c 6c 20 63 61 6c 6c 73 | 2c 20 51 75 69 63 6b 44 |ll calls|, QuickD|
|00005fb0| 72 61 77 20 47 58 20 63 | 68 65 63 6b 73 20 74 68 |raw GX c|hecks th|
|00005fc0| 65 20 72 6f 75 74 69 6e | 65 73 20 6f 6e 20 65 6e |e routin|es on en|
|00005fd0| 74 72 79 20 61 6e 64 20 | 6d 61 6b 65 73 20 73 75 |try and |makes su|
|00005fe0| 72 65 20 74 68 61 74 20 | 74 68 65 20 74 79 70 65 |re that |the type|
|00005ff0| 73 20 61 72 65 20 63 6f | 72 72 65 63 74 2e 20 46 |s are co|rrect. F|
|00006000| 6f 72 20 65 78 61 6d 70 | 6c 65 2c 20 69 66 20 79 |or examp|le, if y|
|00006010| 6f 75 20 63 61 6c 6c 20 | 47 58 44 72 61 77 53 68 |ou call |GXDrawSh|
|00006020| 61 70 65 20 77 69 74 68 | 20 74 68 69 73 20 76 61 |ape with| this va|
|00006030| 6c 69 64 61 74 69 6f 6e | 20 73 65 74 74 69 6e 67 |lidation| setting|
|00006040| 2c 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 6d |, QuickD|raw GX m|
|00006050| 61 6b 65 73 20 73 75 72 | 65 20 74 68 61 74 20 74 |akes sur|e that t|
|00006060| 68 65 20 73 68 61 70 65 | 20 62 65 69 6e 67 20 70 |he shape| being p|
|00006070| 61 73 73 65 64 20 69 6e | 20 69 73 20 61 20 76 61 |assed in| is a va|
|00006080| 6c 69 64 20 73 68 61 70 | 65 20 61 6e 64 20 74 68 |lid shap|e and th|
|00006090| 61 74 20 69 74 d5 73 20 | 61 6e 20 6f 62 6a 65 63 |at it.s |an objec|
|000060a0| 74 20 6f 66 20 74 68 65 | 20 63 6f 72 72 65 63 74 |t of the| correct|
|000060b0| 20 74 79 70 65 2e 20 54 | 68 69 73 20 77 69 6c 6c | type. T|his will|
|000060c0| 20 72 65 73 75 6c 74 20 | 69 6e 20 61 20 73 6c 69 | result |in a sli|
|000060d0| 67 68 74 20 64 65 63 72 | 65 61 73 65 20 69 6e 20 |ght decr|ease in |
|000060e0| 70 65 72 66 6f 72 6d 61 | 6e 63 65 20 62 75 74 20 |performa|nce but |
|000060f0| 77 69 6c 6c 20 68 65 6c | 70 20 79 6f 75 20 63 61 |will hel|p you ca|
|00006100| 74 63 68 20 62 61 64 20 | 64 61 74 61 20 65 61 72 |tch bad |data ear|
|00006110| 6c 69 65 72 2e 0d 59 6f | 75 72 20 61 70 70 6c 69 |lier..Yo|ur appli|
|00006120| 63 61 74 69 6f 6e 20 63 | 61 6e 20 76 61 6c 69 64 |cation c|an valid|
|00006130| 61 74 65 20 76 61 72 69 | 6f 75 73 20 51 75 69 63 |ate vari|ous Quic|
|00006140| 6b 44 72 61 77 20 47 58 | 20 67 72 61 70 68 69 63 |kDraw GX| graphic|
|00006150| 73 20 61 6e 64 20 6c 61 | 79 6f 75 74 20 6f 62 6a |s and la|yout obj|
|00006160| 65 63 74 73 20 d1 20 73 | 68 61 70 65 2c 20 73 74 |ects . s|hape, st|
|00006170| 79 6c 65 2c 20 74 72 61 | 6e 73 66 6f 72 6d 2c 20 |yle, tra|nsform, |
|00006180| 69 6e 6b 2c 20 76 69 65 | 77 20 70 6f 72 74 2c 20 |ink, vie|w port, |
|00006190| 76 69 65 77 20 64 65 76 | 69 63 65 2c 20 76 69 65 |view dev|ice, vie|
|000061a0| 77 20 67 72 6f 75 70 2c | 20 63 6f 6c 6f 72 20 70 |w group,| color p|
|000061b0| 72 6f 66 69 6c 65 2c 20 | 63 6f 6c 6f 72 20 73 65 |rofile, |color se|
|000061c0| 74 2c 20 74 61 67 2c 20 | 6f 72 20 67 72 61 70 68 |t, tag, |or graph|
|000061d0| 69 63 73 20 63 6c 69 65 | 6e 74 2c 20 6f 72 20 61 |ics clie|nt, or a|
|000061e0| 6e 79 20 63 6f 6d 62 69 | 6e 61 74 69 6f 6e 20 d1 |ny combi|nation .|
|000061f0| 20 77 69 74 68 20 61 20 | 47 58 56 61 6c 69 64 61 | with a |GXValida|
|00006200| 74 65 20 63 61 6c 6c 20 | 62 65 66 6f 72 65 20 74 |te call |before t|
|00006210| 68 65 79 d5 72 65 20 70 | 61 73 73 65 64 20 74 6f |hey.re p|assed to|
|00006220| 20 61 20 72 6f 75 74 69 | 6e 65 2e 20 46 6f 72 20 | a routi|ne. For |
|00006230| 65 78 61 6d 70 6c 65 2c | 20 69 66 20 79 6f 75 20 |example,| if you |
|00006240| 77 61 6e 74 65 64 20 74 | 6f 20 76 61 6c 69 64 61 |wanted t|o valida|
|00006250| 74 65 20 74 68 65 20 69 | 6e 6b 73 20 69 6e 20 74 |te the i|nks in t|
|00006260| 68 65 20 68 65 61 70 2c | 20 79 6f 75 20 77 6f 75 |he heap,| you wou|
|00006270| 6c 64 20 6d 61 6b 65 20 | 74 68 65 20 66 6f 6c 6c |ld make |the foll|
|00006280| 6f 77 69 6e 67 20 63 61 | 6c 6c 3a 20 0d 47 58 56 |owing ca|ll: .GXV|
|00006290| 61 6c 69 64 61 74 65 49 | 6e 6b 28 67 78 49 6e 6b |alidateI|nk(gxInk|
|000062a0| 29 3b 0d 49 66 20 79 6f | 75 d5 72 65 20 69 6e 74 |);.If yo|u.re int|
|000062b0| 65 72 65 73 74 65 64 20 | 69 6e 20 75 73 69 6e 67 |erested |in using|
|000062c0| 20 6f 6e 6c 79 20 74 68 | 65 73 65 20 76 61 6c 69 | only th|ese vali|
|000062d0| 64 61 74 69 6f 6e 20 63 | 61 6c 6c 73 2c 20 73 65 |dation c|alls, se|
|000062e0| 74 20 74 68 65 20 76 61 | 6c 69 64 61 74 69 6f 6e |t the va|lidation|
|000062f0| 20 6c 65 76 65 6c 20 74 | 6f 20 67 78 50 75 62 6c | level t|o gxPubl|
|00006300| 69 63 56 61 6c 69 64 61 | 74 69 6f 6e 2e 0d 54 52 |icValida|tion..TR|
|00006310| 41 43 4b 49 4e 47 20 44 | 4f 57 4e 20 41 20 4d 45 |ACKING D|OWN A ME|
|00006320| 4d 4f 52 59 20 54 52 41 | 53 48 49 4e 47 20 50 52 |MORY TRA|SHING PR|
|00006330| 4f 42 4c 45 4d 09 09 0d | 56 61 6c 69 64 61 74 69 |OBLEM...|Validati|
|00006340| 6f 6e 20 69 73 20 61 20 | 67 6f 6f 64 20 77 61 79 |on is a |good way|
|00006350| 20 74 6f 20 74 72 61 63 | 6b 20 64 6f 77 6e 20 61 | to trac|k down a|
|00006360| 20 6d 65 6d 6f 72 79 20 | 74 72 61 73 68 69 6e 67 | memory |trashing|
|00006370| 20 70 72 6f 62 6c 65 6d | 2e 20 49 66 20 74 68 65 | problem|. If the|
|00006380| 20 51 75 69 63 6b 44 72 | 61 77 20 47 58 20 68 65 | QuickDr|aw GX he|
|00006390| 61 70 20 67 65 74 73 20 | 74 72 61 73 68 65 64 2c |ap gets |trashed,|
|000063a0| 20 79 6f 75 20 6e 65 65 | 64 20 74 6f 20 6b 6e 6f | you nee|d to kno|
|000063b0| 77 20 69 66 20 69 74 d5 | 73 20 79 6f 75 72 20 61 |w if it.|s your a|
|000063c0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 68 61 74 d5 |pplicati|on that.|
|000063d0| 73 20 64 6f 69 6e 67 20 | 74 68 65 20 64 61 6d 61 |s doing |the dama|
|000063e0| 67 65 20 6f 72 20 69 66 | 20 69 74 d5 73 20 51 75 |ge or if| it.s Qu|
|000063f0| 69 63 6b 44 72 61 77 20 | 47 58 2e 20 54 68 65 73 |ickDraw |GX. Thes|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.